Thread: rename problem
View Single Post
Old 11-28-2010, 03:14 PM   #1 (permalink)
medvirus
The Wanderer
 
Join Date: Oct 2010
Posts: 9
Thanks: 2
medvirus is on a distinguished road
Default rename problem

hi friend in php why cant rename file across drive
like this
suppose :
PHP Code:
$c="";
$d="";
$re=rename($c,$d);
if(
$re)
{echo 
"Success";}
else{
echo 
"Failed";} 
Now if i put
$c="F:\/1.jpg";
ANd
$d="F:\/2.jpg";
it show me success

But if i Change Drive then Not work
like
$c="F:\/1.jpg";
ANd
$d="E:\/2.jpg";
then Failedd

So Hope some will Solve my problem or give me a good Solution...
medvirus is offline  
Reply With Quote