demexp-dev
[Top][All Lists]
Advanced

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

Re: [Demexp-dev] php file exitence


From: David MENTRE
Subject: Re: [Demexp-dev] php file exitence
Date: Fri, 02 Nov 2007 10:57:09 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hello Diogène,

Diogene Laerce <address@hidden> writes:

> Im trying to get the xml file ive done with the questions list and
> informations to parse it. But I cant find it : I already give a 777
> permission recursively on all site, my safe mode on phpinfo() is set on
> "off" but the following code return false :
>
> $filename = '/chemin/jusqu/a/fichier.txt';
>
> if (file_exists($filename)) {
>     print "Le fichier $filename existe";
> } else {
>     print "Le fichier $filename n'existe pas";
>
> -----------file doesnt exist
>
> An idea ?

Not really. Giving access rights and disabling safe mode should be
enough to access any file. There is a cache of read information on a
file but the cache is empty until the file is available at least
once[1]. 

Double check the path of the file, that this is the right path, starting
a the root of your file-system. The code you have shown us is not your
real code so I can't help you further.

Sorry,
Yours,
d.

Footnotes: 
[1]  http://www.manuelphp.com/php/function.clearstatcache.php

-- 
GPG/PGP key: A3AD7A2A David MENTRE <address@hidden>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A




reply via email to

[Prev in Thread] Current Thread [Next in Thread]