LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 15
PHP & Apache


Hi

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 http://127.0.0.1/script.php?test=test

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?

Regards

Mike
 
Old 08-25-2003, 08:38 PM   #2
Saraev
Member
 
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, 05:20 AM   #3
michael_mead
Member
 
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, 05:25 AM   #4
nephilim
Member
 
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"
 
  


Reply


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 11:18 AM
ISS & ASP/.NET or Apache & PHP fuelinjection General 3 12-06-2005 07:41 AM
Apache & php & mod_dav Byenary Linux - Software 1 07-09-2005 01:26 PM
apache && php help needed issey Linux - Newbie 5 03-30-2005 11:28 AM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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