Reply to Re: PHP script at start up

Your name:

Reply:


Posted by Mladen Gogala on 02/09/07 13:54

On Thu, 08 Feb 2007 08:39:22 -0800, Slawek wrote:

> I would like to run a script at startup under SuSE 9. I read and
> figured out that it can be done using chkconfig and setting the proper
> run level. The problem I have currently is that I depend on system
> environmental variables being available for PHP. I am using PHP as a
> scripting language (nothing to do with the web), and this PHP script
> is called from the start up bash script, but it cannot retrieve any
> environmental vars at runlevel 3.
>
> When are environmental vars set and at which runlevel? Or should I do
> this some other way?
>
> Thanks,
>
> Slawek

$ php -r 'echo getenv("ORACLE_HOME"),"\n";'
/oracle/product/10g
$


--
http://www.mladen-gogala.com

[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

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