Welcome Guest, Not a member yet? Register   Sign In
file_exists() function is not working in CI Helper
#2

[eluser]mironcho[/eluser]
As far as I know, file_exists() doesn't support URL wrappers (well, since php version 5 some are supported), so you should use filesystem path instead of URL. Nevertheless, if you really want to check if URL exists, you can do it with fopen() (of course - only if allow_url_fopen is allowed in your php configuration):
Code:
if (fopen($ImgLoc, 'r'))
{
    // exists
}
else
{
    // nope...
}

http://php.net/manual/en/function.file-exists.php


Messages In This Thread
file_exists() function is not working in CI Helper - by El Forum - 05-15-2008, 12:59 AM
file_exists() function is not working in CI Helper - by El Forum - 05-15-2008, 04:40 AM
file_exists() function is not working in CI Helper - by El Forum - 05-15-2008, 05:27 AM
file_exists() function is not working in CI Helper - by El Forum - 05-15-2008, 05:32 AM
file_exists() function is not working in CI Helper - by El Forum - 05-15-2008, 05:37 AM
file_exists() function is not working in CI Helper - by El Forum - 05-15-2008, 06:42 PM
file_exists() function is not working in CI Helper - by El Forum - 05-16-2008, 12:36 AM
file_exists() function is not working in CI Helper - by El Forum - 05-16-2008, 12:44 AM
file_exists() function is not working in CI Helper - by El Forum - 05-16-2008, 01:51 AM
file_exists() function is not working in CI Helper - by El Forum - 05-16-2008, 05:57 AM
file_exists() function is not working in CI Helper - by El Forum - 05-16-2008, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB