I have a text file declared in a variable then It was located temporarily in my “temp” folder located at my C: driver.
then I want the txt file to pass to another folder named “sales”.
When I run the code is not passing the file from the temp folder to the sales folder.
here is the code:
<?php
$text = “LSPI_PSPAYM_7790.txt”;
//$file = “C://temp/”.$text.“”;
//$newfile = “C:/sales/”.$text.“”;
$flgcopy = copy(“file://C:/temp/”.$text.“”,“file://C:/sales/”.$text.“”);
if($flgcopy)
{
echo"Success";
Ubuntu is my current OS using at my office. I try this at my home at my laptop and it is working perfectly but here in office it does not worked anymore.