PHP rename() on FDC4
Posted: Tue Apr 11, 2006 7:19 pm
Hello,
I have a new install using FDC4. I am trying to get a php script to move a file that it creates fromt the /tmp directory to another folder on the server.
My code looks something like this:
This code works on my windows server and it works on a Debian Linux server but I can not get it to work on my FDC4 server . I have checked the permissions on the folder and even did the evil chmod 777 on the folder I want to copy it to. I also gave the user apache full rights to the folder. I have check safemode and it is off. Any thought you could provide would be much appreciated.
Thanks,
David
I have a new install using FDC4. I am trying to get a php script to move a file that it creates fromt the /tmp directory to another folder on the server.
My code looks something like this:
Code: Select all
<?php
$fromfile = "/tmp/filename.call";
$tofile = "/var/spool/asterisk/outgoing/filename.call";
rename($fromfile,$tofile);
?>Thanks,
David