note 58918 rejected from features.safe-mode by sp

From: Date: Sun, 22 Jan 2006 09:09:15 +0000
Subject: note 58918 rejected from features.safe-mode by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-102232@lists.php.net to get a copy of this message
Note Submitter: bgshea at gmail dot com ---- <?php // tempfile.inc does not exist //this should fail $file = fopen("/home/bgshea/tempfile.inc", "r+"); if( $file ) echo "Sucess."; else echo "Failure."; fclose( $file ); //this should not fail, but create the file touch("/home/bgshea/tempfile.inc"); //no file created //try to create and open for read and write, but fails $file = fopen("/home/bgshea/tempfile.inc", "x+"); if( $file) { fprintf($file, "Hello World!"); $fclose( $file ); } else echo "Failure."; // of course it fails, no file exists. readfile("/home/bgshea/tempfile.inc" ); ?> all these fail when open_basedir is set to /home or /home/ think maybe that open_basedir is tooooo restrictive or maybe we need an allow_filecreatedir if you want log files, i'll send them seperate

« previous php.notes (#102232) next »