file exist check failing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: file exist check failing (/showthread.php?tid=16032) Pages:
1
2
|
file exist check failing - El Forum - 02-23-2009 [eluser]TheFuzzy0ne[/eluser] I am fully aware that the files are on a remote server. That's what the function checks... However, I've just noticed a missing 'l', which I've added in the original thread. It will return FALSE if it gets a 404 from the server, TRUE if it gets 200 OK from the server. If the file doesn't exist on your server, it should return FALSE. If it keeps returning TRUE, it's very likely that you aren't giving it the correct URL. Code: function is_working_url($url) Whoops. I misread your post. If the files are local, then this function is no good for you. It's 4:32AM so I am off to bed now. If this isn't solved when I wake up, I'll see if I can help. file exist check failing - El Forum - 02-23-2009 [eluser]bhakti.thakkar[/eluser] it turned out to be something different. actually the file_exists() function looks out for a path something like var/www/applicationpath/upload files and i was passing http://IP_ADDERESS/applicationpath/upload file which is wrong. i have rectified it and things are working fine now. now i am declaring two paths 1. for file_exists() [var/www/etc etc] 2. for actual opening of the file via <a > [http://IP_ADDRESS/APPPATH etc etc] Thanks for all the helps file exist check failing - El Forum - 02-24-2009 [eluser]TheFuzzy0ne[/eluser] Glad you got it sorted. file exist check failing - El Forum - 02-24-2009 [eluser]bhakti.thakkar[/eluser] Thanks but it unnecessary really took the hell out of me - |