View Single Post
Old 03-21-2010, 08:20 AM  
cyco_cc
Confirmed User
 
cyco_cc's Avatar
 
Join Date: Oct 2008
Posts: 344
Quote:
Originally Posted by fris View Post
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.
cyco_cc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote