Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP script at start up
February 8, 2007, 4:39 pm
rate this thread
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?
Re: PHP script at start up
Different environment variables are set at different stages. Many of the
good ones are not set until you log in.
What information do you need to find out from environment variables?
Perhaps there is another way of finding it.
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!