File_exists on a a remote server
Posted: Fri Aug 13, 2004 9:45 am
Hi
I'm having trouble determining if a file eixts oir not a remote server using the following method
if (file_exists('http://remoteserver/image.jpg') == true)
{
}
I can display the image file, and even access its attributes such as height, width and file type, just cannot get the file_exist statement to correctly determine if the file actually exists or not (always returns false).
Any help would be greatly appreciated.
Thanks
I'm having trouble determining if a file eixts oir not a remote server using the following method
if (file_exists('http://remoteserver/image.jpg') == true)
{
}
I can display the image file, and even access its attributes such as height, width and file type, just cannot get the file_exist statement to correctly determine if the file actually exists or not (always returns false).
Any help would be greatly appreciated.
Thanks