note 93245 added to function.copy
| From: | eng-ayman at aymax dot net | Date: | Sun, 30 Aug 2009 12:48:48 +0000 |
| Subject: | note 93245 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160045@lists.php.net to get a copy of this message | ||
some hosts disable copy() function and say its for security
and for some copy is important so this is and simple function that do same as copy function effect
how smart php can help us l like php
function copyemz($file1,$file2){
$contentx =@file_get_contents($file1);
$openedfile = fopen($file2, "w");
fwrite($openedfile, $contentx);
fclose($openedfile);
if ($contentx === FALSE) {
$status=false;
}else $status=true;
return $status;
}
----
Server IP: 69.147.83.197
Probable Submitter: 82.201.188.50
----
Manual Page -- http://www.php.net/manual/en/function.copy.php
Edit -- https://master.php.net/note/edit/93245
Del: integrated -- https://master.php.net/note/delete/93245/integrated
Del: useless -- https://master.php.net/note/delete/93245/useless
Del: bad code -- https://master.php.net/note/delete/93245/bad+code
Del: spam -- https://master.php.net/note/delete/93245/spam
Del: non-english -- https://master.php.net/note/delete/93245/non-english
Del: in docs -- https://master.php.net/note/delete/93245/in+docs
Del: other reasons-- https://master.php.net/note/delete/93245
Reject -- https://master.php.net/note/reject/93245
Search -- https://master.php.net/manage/user-notes.php