Question

I'm trying to open a file using fopen, and I am getting the error:

Warning:  fopen(/var/www/views/images/favicon.gif): failed to open stream:
Numerical result out of range

The file exists at the provided path. I couldn't find any documentation on the error to fix it. Any thoughts?

Was it helpful?

Solution 2

Turns out I was trying to use

fopen($file, FOPEN_READ)

When all I had to do was change it to:

fopen($file, 'r')

And that fixed it.

OTHER TIPS

Can you access the file directly? What kind of information does getimagesize() return on the file? It seems really odd and I'm having no luck getting that result.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top