note 48872 deleted from function.chmod by tomsommer

From: Date: Tue, 27 Dec 2005 12:29:05 +0000
Subject: note 48872 deleted from function.chmod by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100782@lists.php.net to get a copy of this message
Note Submitter: tom at NOSPAM dot NO dot SPAM dot darlingpet dot com ---- If you are having difficulty with your script setting the permissions of a file, make sure that you are actually trying to set the permissions of the file you want. For example, you have to get the full root path to the file in order for it to work.. This applies to unix boxes. <?php if(!chmod(dirname($_SERVER['SCRIPT_FILENAME'])."/". $file,0777)){echo "Can't chmod $file";} ?>

« previous php.notes (#100782) next »