Posts by Claudio Andrade • 1 point
4 posts
-
0
votes1
answer46
viewsQ: Is it possible to loop with "0" on the left in PHP?
Dear Devs, I’m trying to use a list with zero left using for and str_pad, but I’m not getting the variable with 0 left, the first variable comes complete but in the autoincrement it’s counting…
-
-1
votes2
answers124
viewsA: Error saving JSON via fopen, downloaded via Curl
I got it Just by taking json_encode, because the file already came "encoded", //cria o arquivo json na pasta criada $caminhoArquivo = 'logs/'.$nomeDir.'/json-fornecedor-'.$hora.'.json'; $arquivo =…
-
-2
votes2
answers124
viewsQ: Error saving JSON via fopen, downloaded via Curl
The command below, accesses an API via Curl, searches for a JSON file, creates a folder inside the /logs folder, and saves the JSON file, so far no problem. However when saving the JSON file it is…
-
-2
votes2
answers476
viewsQ: Download API request file into server folder (localhost) with PHP
Dear friends, I have the code below that works as follows, it makes a request via Curl, brings me a file, but this being necessary to click save in the browser, I would like to simply open the…