hello steadyguy
thanx for ur reply
this is my query
i have used copy() function in php coding. The code must replicate a file and save it on the host. The code works well when i try it on my computer but gives error when i try it online after uploading that script.
i have used
$teststr = realpath("replicate.php");
$from=str_replace('\','/',$teststr);
$array = split('/', $from);
$count = count($array);
$to="";
for ($i=0; $i<$count-1; $i++)
{
if ($i==0)
{
$to=$array[$i];
}
else
{
$to=$to."/".$array[$i];
}
}
$to=$to."/".$filename.".php";
if(!copy("$from","$to")) die ("Can't copy the file replicate.php");
=============================================
The permission of this file which i have set is "777" and i have also tried "755" using "cute ftp".
The scripts works well locally but gives error online as....
"Can't copy the file replicate.php "
it is very necessary for me to replicate files
pradeep