Hi all,
I made a post earlier this month about no being able to conect to a mysql dbase. Since then I've worked out that it had nothing to do with mysql but I think it is in the PHP setup or something ****my head hurts ****
Heres the story, we use global variables that work in a basic test program as is shown in the php manual. There is a config file that is included. register globals is set to on.
This all works on the M$ machine but when I transferred the code onto the Debian Woody box the global variables in the config file don't transfer to the page that is calling it, however the included functions on the page are referenced. This caused the problems connecting to the dbase.![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
Now hardcoding the database specific variables into the pages made the page connect to the dbase but global variables still aren't being passed between functions. I have spent ages comparing the windows and linux php.ini files but they both have the same variable settings including register_globals on.
Help anyone, does this make sence??![[bravo] [bravo] [bravo]](/data/assets/smilies/bravo.gif)
Any Ideas, I hope this made sence.
I made a post earlier this month about no being able to conect to a mysql dbase. Since then I've worked out that it had nothing to do with mysql but I think it is in the PHP setup or something ****my head hurts ****
Heres the story, we use global variables that work in a basic test program as is shown in the php manual. There is a config file that is included. register globals is set to on.
This all works on the M$ machine but when I transferred the code onto the Debian Woody box the global variables in the config file don't transfer to the page that is calling it, however the included functions on the page are referenced. This caused the problems connecting to the dbase.
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
Now hardcoding the database specific variables into the pages made the page connect to the dbase but global variables still aren't being passed between functions. I have spent ages comparing the windows and linux php.ini files but they both have the same variable settings including register_globals on.
Help anyone, does this make sence??
![[bravo] [bravo] [bravo]](/data/assets/smilies/bravo.gif)
Any Ideas, I hope this made sence.