| 
	
 | 
 Posted by "Gustav Wiberg" on 06/16/06 11:31 
----- Original Message -----  
From: "Jay Blanchard" <jay.blanchard@THERMON.com> 
To: "'Gustav Wiberg'" <gustav@varupiraten.se>; "PHP General"  
<php-general@lists.php.net> 
Sent: Monday, November 07, 2005 9:02 PM 
Subject: RE: [PHP] FileExists? 
 
 
> [snip] 
> File_exists doesn't seem to work with URLs that point to another domain. 
> What to use? 
> 
> $x = fopen(http://www.stammis.com/getstart.php); 
> if file_exists($x) .... 
> .... 
> ???? 
> [/snip] 
> 
> What version of PHP are you using. With anything less than PHP5 you cannot 
> use file_exists on anything other than the file system PHP is local to. 
> 
> All versions of PHP. Explicitly using file:// since PHP 4.3.0 
> 
> /path/to/file.ext 
> 
> relative/path/to/file.ext 
> 
> fileInCwd.ext 
> 
> C:/path/to/winfile.ext 
> 
> C:\path\to\winfile.ext 
> 
> \\smbserver\share\path\to\winfile.ext 
> 
> file:///path/to/file.ext 
> 
> file:// is the default wrapper used with PHP and represents the local 
> filesystem. When a relative path is specified (a path which does not begin 
> with /, \, \\, or a windows drive letter) the path provided will be  
> applied 
> against the current working directory. In many cases this is the directory 
> in which the script resides unless it has been changed. Using the CLI  
> sapi, 
> this defaults to the directory from which the script was called. 
> 
Hi 
 
I'm using PHP 4.3.0. 
 
Thanx! :-) 
 
/G 
http://www.varupiraten.se/
 
  
Navigation:
[Reply to this message] 
 |