0
I have a code that has several photos separated by reports. Each report can any amount of photos. When you click the button to generate this report, if you have several photos (around 60) it starts generating errors instead of generating it. I don’t know exactly why, but when the report is small those errors disappear.
The message that appears is next:
Message: fopen(http://site.com/imagens/caminho_da_foto/nome_da_foto.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
My code is in Codeigniter, and all the photos are saved in my database, along with your reports.
The line that appears the error is next:
$f->caminho_img = $l->caminho_img [0];
$ponteiro = fopen("http://site.com/imagens/" . $f->caminho_img . ".txt", true);
Are you loading these photos in some kind of loop? (repeat command). Are you sure the files you are ordering really exist? By the error message, you are saying that the request failed because it did not find the destination.
– Thiago Yoithi
@Thiagoyoithi checked the files, and they all exist with the same path and name being called. The photos are loaded inside a loop.
– Ketlin