Reply to Re: exec() in the background

Your name:

Reply:


Posted by Redfox05 on 02/14/06 22:23

MS wrote:
<snip>

> So... Let me get this straight.....
>
> the parameters within the () of exec() are what you would use in the PHP
> command line console?

No not what you use in the PHP console, but the unix console.
The stuff within the brackets is basically the command you want. There
are no additional parameters needed.

The unix console is the thing you get when you connect using SSH or
telnet etc, to the server shell.

ie. you could use exec("php /dir/yourscript.php"); which tells php to
load that script.
Or
exec("cp /dir/yourfile.txt /dir2/") which copies a file from one place
to another.

the examples are totally unrelated, but I just wanted to show that the
stuff within the brackets are linux/unix commands, NOT php commands.

Russell

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация