You are here: Re: How to pass variable to operating system. « All PHP « IT news, forums, messages
Re: How to pass variable to operating system.

Posted by Henk Oegema on 10/11/07 06:30

>> J.O. Aho wrote:
>>
> php somescript.php = CURL(http://localhost/uptime/uptime.php)
>
> You can do the following
>
> --- yourscript ---
> #!/usr/bin/php
> <?PHP
> echo "My script\n";
> ?>
> --- eof ---
>
> chmod 755 yourscript
>
> $ ./yourscript
> My script
> $
>
> And now you don't use the php to execute the script, it's all built in.
> See to that the path is correct where php binary is located-
>

Thanks Aho :)

Rgds
Henk

 

Navigation:

[Reply to this 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

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