is_file() problem

Guten Tag!

Ich bin bei meinen Provider auf einen neuen Server umgezogen. (Linux ;
Apache 2.2.6 + php 5.2.5 ; 10GB Speicher).

Seit der Zeit bekomme ich eine Warnmeldung. Das Ergebniss ist aber richtig

##################

Warning: is_file() [function.is-file]: open_basedir restriction in effect.
File(..) is not within the allowed path(s):
(/www/htdocs/w00705c2/:/tmp:/usr/bin:/www/htdocs/w00705c2:/b in:/usr/local/bi
n:/usr/share/php) in /www/htdocs/w00705/get_upt_dat.php on line 11

Zeile 11: if(is_file($file))

Skript get_upt_dat.php:

<?php
$uptdat = 0 ;
$path = getenv("DOCUMENT_ROOT").getenv("REQUEST_URI")."/";
$current_dir= dirname($path);

$dir = opendir("/www/htdocs/w00705/");
// $dir = opendir($current_dir);

while ($file = readdir($dir)) {

if(is_file($file))
{
if( (filemtime($file)) > $uptdat )
{
$uptdat = (filemtime($file));
}
}
}
closedir($dir);
?>
<?php echo strftime("%d %b %Y %H:%M:%S",$uptdat); ?>

######################

Wenn ich bei Google nach dem Problem suche, liegt es an Grossen Datein >2GB.
Die Größte Datei hat jedoch nur 250kb!

Kann mir jemand ein Tip geben?

Gruß jan
Jan M [ Di, 27 November 2007 16:06 ] [ ID #1880098 ]

Re: is_file() problem

Jan M:
^^^^^
> Warning: is_file() [function.is-file]: open_basedir restriction in effect.

<http://de.php.net/manual/en/features.safe-mode.php#ini.open-basedir>
--
Mit PHP Kontonummern auf Gültigkeit prüfen:
<http://bav.malkusch.de/>
Markus Malkusch [ Di, 27 November 2007 16:39 ] [ ID #1880099 ]

Re: is_file() problem

Jan M schrieb:
> Guten Tag!
>
> Ich bin bei meinen Provider auf einen neuen Server umgezogen. (Linux ;
> Apache 2.2.6 + php 5.2.5 ; 10GB Speicher).
>
> Seit der Zeit bekomme ich eine Warnmeldung. Das Ergebniss ist aber rich=
tig
>
> ##################
>
> Warning: is_file() [function.is-file]: open_basedir restriction in effe=
ct.
> File(..) is not within the allowed path(s):
> (/www/htdocs/w00705c2/:/tmp:/usr/bin:/www/htdocs/w00705c2:/b in:/usr/loc=
al/bi
> n:/usr/share/php) in /www/htdocs/w00705/get_upt_dat.php on line 11


Dein Script aus "/www/htdocs/w00705/" darf nicht im konfiguriertem
"/www/htdocs/w00705c2/" arbeiten.

Gruss
Joerg

--
TakeNet GmbH, Geschaeftsfuehrer Wolfgang Meier
97080 Wuerzburg Tel: +49 931 903-2243
Alfred-Nobel-Straße 20 Fax: +49 931 903-3025
HRB Wuerzburg 6940 http://www.takenet.de
Joerg Behrens [ Di, 27 November 2007 17:04 ] [ ID #1880100 ]
PHP » de.comp.lang.php.misc » is_file() problem

Vorheriges Thema: session_start() in jedem Dokument?
Nächstes Thema: Templateengine gesucht.