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
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
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
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
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
- 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
[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
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
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
9 matches
Mail list logo