note 110919 deleted from function.chmod by aharvey

From: Date: Tue, 08 Jan 2013 01:47:18 +0000
Subject: note 110919 deleted from function.chmod by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192785@lists.php.net to get a copy of this message
Note Submitter: leaksin [ at ] gmail [ dot ] com ---- If you are new to use chmod() on Linux, at the beginning of use chmod() you may just get www-data. The mode can be changed only by user who owns the file on most systems. so it is okay, you should change your current user; The current user is the user under which PHP runs. In my OS(ubuntu,linux): It located in /etc/apache2/envvars To change,log in as root and edit this one:export APACHE_RUN_USER=www-data to your user name. you can also use sudo for solving this problem.

« previous php.notes (#192785) next »