note 58918 added to features.safe-mode

From: Date: Sun, 20 Nov 2005 17:38:50 +0000
Subject: note 58918 added to features.safe-mode
Groups: php.notes 
Request: Send a blank email to php-notes+get-98856@lists.php.net to get a copy of this message
<?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 ---- Manual Page -- http://www.php.net/manual/en/features.safe-mode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58918 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58918&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58918&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98856) next »