Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php commandline script

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
I have a command line script that I'm trying to run on windows 2003 with php 5.3.2. The script includes an app top file, which includes the config file. The problem is that variables set in the config file are not available to the app top script. (This all works fine when loaded from Apache)

However, running the same script under Linux with 5.2.12 works just fine.

Does anyone have any clues or ideas? Thanks!
 
the include paths may be different between the installations.
 
When PHP is run from the command line the apache settings are not used. You are used to put any php setting in your httpd.conf or in a virtual host. Running from CMD you dont have that confgifile anymore.

Make a configfile in which you put your settings and run PHP with the -c option.

mcvdmvs
"It never hurts to help" -- Eek the Cat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top