Quote:
Originally Posted by fris
thats really bad code
|
Yeah, there's no sense in using the resources to open the file just to check for its existence and also (I haven't done anything in PHP for years so I may be wrong) I think fopen() by default doesn't allow you to open up URLs for security reasons.
To the OP, as konrad said, replace the $url with the local FS path and it should be fine.