note 92494 deleted from function.posix-setgid by danbrown
| From: | danbrown@php.net | Date: | Mon, 27 Jul 2009 14:50:08 +0000 |
| Subject: | note 92494 deleted from function.posix-setgid by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158775@lists.php.net to get a copy of this message | ||
Note Submitter: l dot piciocchi at soluzioni dot org
----
/* @path - Path and name of file
* @data - Data of file to write
*/
function toFile ($path, $data) {
posix_setgid(0);
posix_setuid(0);
$fd = fopen( $path ,"w");
fwrite($fd, $data);
fclose($fd);
}