Posts by Ian Brandão • 1 point
3 posts
-
0
votes1
answer68
viewsA: How do I check if an html file was generated in ftp and was generated, open it in the browser?
Solution: while (!file_exists(ftp://usuario:[email protected]/diretorio/arquivo)) sleep(1); //O sleep serve como intervalo no loop header("Location: http://link_para_ser_redirecionado.com");…
-
0
votes2
answers103
viewsA: Loop in $_POST to save data to a file. CSV
$form_data = array( "$projeto\n", "\n \nQuantidade; Largura; Altura; Material; Descricao\n" ); for($i=0; $i<count($_POST['quantidade']); $i++) { $linha = $_POST['quantidade'][$i].";".…
-
0
votes1
answer68
viewsQ: How do I check if an html file was generated in ftp and was generated, open it in the browser?
I have a form, after filling and sending the form, a file is generated csv with the form data, the file is sent to an application on the server where it does the proper calculations and generates a…