[nycphp-talk] Accessing a file in another web server
edward potter
edwardpotter at gmail.com
Thu Jan 4 14:16:06 EST 2007
What's the url?
On 1/4/07, Néstor <rotsen at gmail.com> wrote:
> I have tried all of those and they return false weather the file is exist
> and is readable or not
> I have tried file_exists()
> stat()
> is_readable()
>
> Wow, I never thought that this would be a problem.....
>
> Thanks,
>
> Néstor :-)
>
> On 1/4/07, Andy Dirnberger <dirn at dirnonline.com> wrote:
> > There are a few url_exists functions in the manual:
> > http://us3.php.net/file_exists
> >
> > -----Original Message-----
> > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> On
> > Behalf Of Jonathan Face
> > Sent: Thursday, January 04, 2007 1:34 PM
> > To: NYPHP Talk
> > Subject: Re: [nycphp-talk] Accessing a file in another web server
> >
> > I haven't had a reason to experiment with this before, but you might try
> > out:
> > file_exists($url);
> >
> > Néstor wrote:
> >
> > > People,
> > >
> > > I am trying to determine if a file exist in a another web server
> > > and if it does exist then I will display the link of the file.
> > >
> > > I tried is_readable() and stat() and they both say that the file does
> not
> > > exist, but the file does exist.
> > >
> > > What function should I use to check for existance of a file
> > > on a different web server???
> > >
> > > Thanks,
> > >
> > > Néstor :-)
> > >
> >
> >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> > >New York PHP Community Talk Mailing List
> > >http://lists.nyphp.org/mailman/listinfo/talk
> > >
> > >NYPHPCon 2006 Presentations Online
> > > http://www.nyphpcon.com
> > >
> > >Show Your Participation in New York PHP
> > >http://www.nyphp.org/show_participation.php
> > >
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> >
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
--
the Blog: http://www.utopiaparkway.com
the Karma: http://www.coderswithconscience.com
the Projects: http://flickr.com/photos/86842405@N00/
the Store: http://astore.amazon.com/httpwwwutopic-20
More information about the talk
mailing list