[asterisk-users] What is equivalent function to "mv" command in php for Asterisk Spool directory usage?

Steve Edwards asterisk.org at sedwards.com
Wed Dec 22 04:18:25 UTC 2010


On Tue, 21 Dec 2010, Bruce B wrote:

> So, using PHP, What is the equivalent of "mv" command? Would it be 
> rename() in php or is there a better method?

Not really an Asterisk question...

On Tue, 21 Dec 2010, MrHanMan wrote:

> I think rename() is what you're looking for

+1

On Tue, 21 Dec 2010, Zeeshan Zakaria wrote:

> exec ('mv *.call /var/spool/asterisk/outgoing')

This will create a new process -- a relatively expensive activity.

Also, this assumes the path to mv is in the PATH environment variable 
which it usually is, but if not can lead to a lot of confusion.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000


More information about the asterisk-users mailing list