RE: File-error code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

Ok. That is the only option then?

Best regards
/Gustav Wiberg
 

-----Original Message-----
From: John Mertic [mailto:jmertic@xxxxxxxxx] 
Sent: Monday, September 10, 2007 2:10 PM
To: Gustav Wiberg; php windows
Subject: Re:  File-error code?

You can use is_file() and is_readable() to determine if the file
exists and is readable. That's not really getting you any sort of
"error code", but it least it helps narrow things down.

John

On 9/10/07, Gustav Wiberg <gustav@xxxxxx> wrote:
> Hi!
>
> Yes, that's correct.
>
> Best regards
> /Gustav Wiberg
>
>
> -----Original Message-----
> From: John Mertic [mailto:jmertic@xxxxxxxxx]
> Sent: Monday, September 10, 2007 1:55 PM
> To: Gustav Wiberg
> Subject: Re:  File-error code?
>
> I guess my question is from where  ( HTTP error code, etc ) and what
> choices are you looking for in terms of a sub code ( file not found,
> not readable, etc ).
>
> On 9/10/07, Gustav Wiberg <gustav@xxxxxx> wrote:
> > Permission denied
> >
> > Best regards
> > /Gustav Wiberg
> >
> >
> > -----Original Message-----
> > From: John Mertic [mailto:jmertic@xxxxxxxxx]
> > Sent: Monday, September 10, 2007 1:30 PM
> > To: Gustav Wiberg
> > Subject: Re:  File-error code?
> >
> > Hi,
> >
> > What code are you looking for?
> >
> > John
> >
> > On 9/10/07, Gustav Wiberg <gustav@xxxxxx> wrote:
> > > Hi!
> > >
> > > I test using readfile($filename) and that's ok. When I'm logged in with "incorrect user" I get permission denied... Is there any way of retrieving the "permission denied" code? when using readfile? (or any other error regarding to readfile-function?
> > >
> > > Best regards
> > > /Gustav Wiberg
> > >
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 2007-09-09 10:17
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > --
> > John Mertic                                        "Explaining a joke
> > is like dissecting a frog: you
> > jmertic@xxxxxxxxx                              understand it better,
> > but the frog dies in the
> >                                                           process."
> >
> >                       -Mark Twain
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 2007-09-09 10:17
> >
> >
> >
> >
>
>
> --
> --
> John Mertic                                        "Explaining a joke
> is like dissecting a frog: you
> jmertic@xxxxxxxxx                              understand it better,
> but the frog dies in the
>                                                           process."
>
>                       -Mark Twain
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 2007-09-09 10:17
>
>
>
>


-- 
-- 
John Mertic                                        "Explaining a joke
is like dissecting a frog: you
jmertic@xxxxxxxxx                              understand it better,
but the frog dies in the
                                                          process."

                      -Mark Twain

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 2007-09-09 10:17
 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux