RE: [PHP] file_exists
| From: | Rasmus Lerdorf | Date: | Tue, 07 May 2002 04:47:34 +0000 |
| Subject: | RE: [PHP] file_exists | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96353@lists.php.net to get a copy of this message | ||
Not until 4.3.
On Mon, 6 May 2002, Jonathan Rosenberg wrote:
> Does fopen() actually work for https connections? I thought this
> implementation was not yet released.
>
> > -----Original Message-----
> > From: Austin Marshall [mailto:amars@pdq.net]
> > Sent: Monday, May 06, 2002 9:40 PM
> > To: Craig Westerman
> > Cc: php-general-list
> > Subject: Re: [PHP] file_exists
> >
> >
> > Craig Westerman wrote:
> > > I found my problem.
> > Try fopen() if it fails it will return false,
> > otherwise it will return
> > an integer file pointer. You get use it to fetch
> > files via http://,
> > https://, ftp://, and more.
> >
> > >
> > > From manual:
> > > "file_exists() will not work on remote files; the
> > file to be examined must
> > > be accessible via the server's filesystem. "
> > >
> > > File is on another server. Is there a way to check
> > if file exists on another
> > > server?
> > >
> > > Craig ><>
> > > westerman@chanuteks.com
> > >
> > >
> > > -----Original Message-----
> > > From: Craig Westerman [mailto:westerman@chanuteks.com]
> > > Sent: Monday, May 06, 2002 7:58 PM
> > > To: php-general-list
> > > Subject: [PHP] file_exists
> > >
> > >
> > > What am I doing wrong? I get parse error between
> > first echo statement and
> > > else.
> > >
> > > Thanks
> > >
> > > Craig ><>
> > > westerman@chanuteks.com
> > >
> > >
> > > <?php
> > > $fn = "image.gif";
> > > if (!file_exists($fn)) {
> > > echo "<img src=noimageexists.gif>";
> > > else
> > > echo "<img src=$fn>";
> > > }
> > > ?>
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>