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       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to