Reply to Re: How to pass variable to operating system.

Your name:

Reply:


Posted by Henk Oegema on 10/10/07 06:59

J.O. Aho wrote:

> Henk Oegema wrote:
>>> J.O. Aho wrote:
>>> Henk Oegema wrote:
>>>
>>>
>>> You would need to use
>>>
>>> export day=`php /path/to/yout/file/uptime.php`
>>>
>>> if you use it this way, you need to make the script to take arguments,
>>> so that
>>> you can get the day, hour and minute alone. Don't forget to echo about
>>> the value.
>> Can you please be a little bit more specific. It's not quit clear to me.
>> Why (and how) must the script take arguments?
>> The values of the 3 variables are already known to the script.
>
> As you can't export three shell variables at the same time, you require to
> set them one at the time. If you still want to output all three at the
> same time in the php script, then you need to use awk or another string
> manipulating command and in which case it's less overhead to make a shell
> script that does all itself.
>
>
>
Please Aho see my reply to Jerry.
With awk I can get my dial plan working. :)

But I want to learn how to do it with a php script.

[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

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