0
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 file html
in a folder in the ftp
, would like to know how do I check the file html
was generated and if generated, open it in the browser in the same tab where I sent the form.
The archive csv
and the file html
will have the same name.
while (!file_exists("$diretorio/$filehtm")) {
sleep(1);
header("Location: Link_Para_Ser_Redirecionado.htm");
}
have you ever googled or right here on the site? https://answall.com/questions/8041/verifica-se-um-ficheiro-existe-na-m%C3%A1quina-remoto-via-ftp-em-php
– Ricardo Pontual
Yes, I did a Google search and here on the site and did some tests, but nothing effective
– Ian Brandão
Post what you’ve tried, easier to help fix something that’s already started than a complete solution
– Ricardo Pontual
I edited the post with Loop that I am having difficulty, it is not being redirected to htm file when it is generated in ftp
– Ian Brandão
I managed to solve the problem, anyway, thanks for your help!
– Ian Brandão
Cool Ian, then post the solution as an answer to get logged in if someone has the same question
– Ricardo Pontual