Hi everybody!
I developed a suite of php scripts and i've tested it with PHP 4.3.3 and
Apache; obiouvsly all works fine.
Now I had a customer that want to buy my application and it needs to run all
the scripts on IIS 5 and possibly with PHP5 (i've warned him that is not a
production release but it want to look forward (...!!)) BUT a very strange
things happens; this is the code:
-----------------------------------------------
<?PHP
require "globvar.php";
require "globfunc.php";
-----------------------------------------------
When i call the function contained into "globfunc.php" the messages are:
Notice: Undefined variable: db_host in E:\WWWTest\globfunc.php on line 46
Obiouvsly the variables he's looking for are correctly defined in
"globvar.php".
The values of the variables (printed into the function defined in
"globfunc.php" are null).
Same problem when i replace PHP5 with PHP4.3.3!
The only way to solve the problem is to... reinstall Apache instead of
IIS!!!
Suggestion? Any configuration that I forget?
Well... my OS is XpPro + SP1 but my customer want to run on Windows Server
2003.
Thanx everybody!
Francesco