Posts by Danilo P. da Silva • 43 points
5 posts
-
0
votes1
answer70
viewsQ: Create array and count values
I’m having a really hard time drawing a array in PHP with the following data coming from an object JSON, no, it does not come from a database SQL query. Example of JSON: [ { "data": { "ID": "349",…
-
3
votes3
answers1300
viewsA: GET via jQuery on a different server, problem with CORS
Answering the question itself, every question boils down that I was always trying to make a POST/GET request to a URL other than mine but, doing so through the browser, ie in the client-side. When…
-
1
votes3
answers1300
viewsQ: GET via jQuery on a different server, problem with CORS
I’m trying to make a call GET/AJAX for a URL which is different from the one I’m making the call, but I always get the message in the browser: Failed to load http://urldoserver.com/: No…
-
0
votes3
answers101
viewsA: Run a script once yes and once no
Solution to the question: $ler = file_get_contents("verifica.txt"); if($ler == "0"){ file_put_contents("verifica.txt","1"); //Grava "1" no arquivo para saber que foi executada a função…
-
0
votes3
answers101
viewsQ: Run a script once yes and once no
I’m having a hard time creating a logic and/or code. I have a Landing page that I need in a simple way, preferably without using database, run a script once yes and another no. For example: User 1…