Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-25-2003, 07:35 PM   #1
Registered: Aug 2003
Distribution: Red Hat, Debian & Mandrake
Posts: 47

Rep: Reputation: 15
PHP & Apache


I have installed both Mandrake 9.1 and Red Hat 9 on two seperate machines.

During installation I selected both PHP and Apache.

When I try and execute a php script on either machines they work but dont read anything sent to them for example.

If I had a script that printed the variable test and executed by

The page would not show test, but instead blank.

PHP is working because I can write a script to query MySQL and print all records. But it is just this one thing not working.

I am not sure what it is?

Any help?


Old 08-25-2003, 09:38 PM   #2
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
Awhile back the PHP guys decided to change "register_globals" to OFF instead of on, for security. As a result, in order to get at your test variable, refer to it as $_GET['test'] instead of $test.

Same goes with posting via forms. Use $_POST['variable'] to access those variables.
Old 08-26-2003, 06:20 AM   #3
Registered: Aug 2003
Distribution: Red Hat, Debian & Mandrake
Posts: 47

Original Poster
Rep: Reputation: 15
Ok thanks, I havent tested it yet, but this server is going to be a mirror of a site remotly hosted. It dosent use this and I would like to turn it on.

Do you know how I can change it?
Old 08-26-2003, 06:25 AM   #4
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
change the value of "register_globals" in the php.ini file to "ON"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 12:18 PM
ISS & ASP/.NET or Apache & PHP fuelinjection General 3 12-06-2005 08:41 AM
Apache & php & mod_dav Byenary Linux - Software 1 07-09-2005 02:26 PM
apache && php help needed issey Linux - Newbie 5 03-30-2005 12:28 PM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 06:31 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration