LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP Setup in Apache (https://www.linuxquestions.org/questions/linux-software-2/php-setup-in-apache-134907/)

stevem00 01-14-2004 07:59 PM

PHP Setup in Apache
 
Hi everyone,
Just wanted to figure out how to enable global variables on my apache server under Mandrake. And also want to enable XML.
Can some one point me in the right direction, where is the httpconf? file. i gather that is the file to change ?

Sorry just I cant get a form to work when im declaing a variable such as $test. If gives me parse errors.

Well thanks for your time,

Steve

hw-tph 01-15-2004 06:36 AM

If you're looking to change PHP settings, it's the php.ini file you should be editing. It may be in /etc/php.ini, /etc/php/php.ini, /etc/php/apache2/php.ini, etc. Make sure you're changing the right one.

If you want to register global variabled you should set "register_globals= On", but it's not recommended for security reasons.

If you get parsing errors when trying a PHP script, are you sure the script actually works? Does the very same file work on other servers?

Håkan

stevem00 01-16-2004 03:59 PM

Great thanks for the help mate. Now i know where to fine the php.ini
Its only for testin on my machine to ill turn globals off once finished.
Not sure if the script is 100%, trying to search a MySQL DB and return results in a dynamic table.. need some more investigation on doing this.

Cheers
Steve


All times are GMT -5. The time now is 10:56 PM.