Re: [PHP] FileExists?

2005-11-08 Thread Richard Lynch
On Mon, November 7, 2005 1:45 pm, Gustav Wiberg wrote: > 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); There are no quotes on that URL... I'd be surprised if this doesn't error out, but maybe you just

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: - Original Message - From: "M" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Monday, November 07, 2005 11:12 PM Subject: Re: [PHP] FileExists? Gustav Wiberg wrote: Hi there! File_exists doesn't seem to

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: Hi there! 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) file_exists() takes filename as parameter, not file pointer. besides, spare the one http r

Re: [PHP] FileExists?

2005-11-07 Thread Chris Shiflett
Gustav Wiberg wrote: $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) That wouldn't work on a normal file either. You should always try to reduce your problem to the simplest case. :-) http://php.net/file_exists The argument is a filename. Hope that helps. Chris -- Chr

Re: [PHP] FileExists?

2005-11-07 Thread Jasper Bryant-Greene
On Mon, 2005-11-07 at 20:45 +0100, Gustav Wiberg wrote: > Hi there! > > 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) You are trying to check if a file pointer exists. You wa

Re: [PHP] FileExists?

2005-11-07 Thread Gustav Wiberg
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "PHP General" Sent: Monday, November 07, 2005 9:02 PM Subject: RE: [PHP] FileExists? [snip] File_exists doesn't see

RE: [PHP] FileExists?

2005-11-07 Thread Jay Blanchard
[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 tha

Re: [PHP] FileExists?

2005-11-07 Thread Jochem Maas
Gustav Wiberg wrote: Hi there! 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) what errors are you getting? what is $x? ??? /G http://www.varupiraten.se/ -- PHP General

[PHP] FileExists?

2005-11-07 Thread Gustav Wiberg
Hi there! 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) /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www