I have a problem using php rename function. If I use the following syntax it works fine.
<?php
rename("pages/file.php", "pages/xfile.php");
?>
but instead if I use this:
<?php
$val = '"pages/file.php"';
$rval = '"pages/xfile.php"';
rename($val, $rval);
?>
It does not work and gives an error:
Warning: rename("pages/file.php","pages/xfile.php") [function.rename]: The system cannot find the path specified. (code: 123) in C:\wamp\www\page_rename.php on line 2
Remove a set of quotes from the path names.