Posts by Rafael Ribeiro • 141 points
6 posts
-
1
votes2
answers474
viewsA: How to take a page link and assign it to a PHP variable?
In short... <div class="fb-comments" data-href="<?= "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" ?>" data-numposts="5" data-colorscheme="light"></div> this way you will be…
phpanswered Rafael Ribeiro 141 -
5
votes6
answers12868
viewsA: What’s the difference between Isis and elseif?
elseif, is what the name suggests, a combination of if and Else. Like Else, it extends an if to perform different instructions in case the original if returns FALSE. However, unlike Else, it will…
-
3
votes1
answer5879
viewsA: Receive JSON data with Curl
Alexandre hope it helps. I have this script running smoothly. $url = "http://www.url.com.br"; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch,…
-
3
votes1
answer79
viewsQ: Using the ACL in Cakephp
After doing a lot of research, I didn’t find a satisfactory answer. I’d like your feedback and/or advice on using the ACL in Cakephp. I’ve seen some plugins that "help" in this issue, but I haven’t…
-
0
votes2
answers346
viewsA: CSS pseudo-class :Nth-of-type()
If you want to select "children" just use "+": Example div p:first-child + p { font-weight: bold; } DIV 1 <div div="div1"> <p class="p">p1</p> <p>p2</p>…
cssanswered Rafael Ribeiro 141 -
1
votes0
answers218
viewsQ: Save data by websocket
I am developing a system using Angularjs and Websocket (PHP or Nodejs I am still defining), where the information of the forms I intend to save via socket, ie by sending an array with the…