Warptweet Posted February 11, 2007 Share Posted February 11, 2007 How can I check if the file $flashname(.php) exists? Link to comment https://forums.phpfreaks.com/topic/37958-if-file-exists/ Share on other sites More sharing options...
Jessica Posted February 11, 2007 Share Posted February 11, 2007 file_exists() This is what the manual is for. Link to comment https://forums.phpfreaks.com/topic/37958-if-file-exists/#findComment-181651 Share on other sites More sharing options...
Warptweet Posted February 11, 2007 Author Share Posted February 11, 2007 Would I do this..? if file_exists($flashname){ echo "Sorry, file already exists."; } else { do code here } Link to comment https://forums.phpfreaks.com/topic/37958-if-file-exists/#findComment-181656 Share on other sites More sharing options...
Jessica Posted February 11, 2007 Share Posted February 11, 2007 yes Link to comment https://forums.phpfreaks.com/topic/37958-if-file-exists/#findComment-181657 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.