FILE_EXISTS???
Posted: Mon Mar 29, 2004 7:11 am
Does FILE_EXISTS only work on files stored on the local server?
For example,
If I use:
it returns true.
But if I use:
it returns false (even though I know the file exists).
Am I doing somthing wrong?
Is there an alternative to checking the existance of a file on a remote host?
thanks,
--TIM
?>
For example,
If I use:
Code: Select all
<?php
$thumbnail="/localdir/filename.jpg";
if(file_exists($thumbnail)){....
}
?>it returns true.
But if I use:
Code: Select all
<?php
$thumbnail="http://www.somewhere.com/filename.jpg";
if(file_exists($thumbnail)){...
}
?>Am I doing somthing wrong?
Is there an alternative to checking the existance of a file on a remote host?
thanks,
--TIM
?>