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 10-27-2004, 10:28 PM   #1
Registered: Jan 2004
Location: new zealand
Distribution: Mandrake,Slackware
Posts: 165

Rep: Reputation: 30
apache or php setup problem


For some reason my slackware apache php server computer wont acknowledge varibles sent to pages from previous pages.

ie: should open the index.php file and have a varible called $blahBlahVarible but it doesnt it just opens the index.php file as usual.
neither does it seem to notice varibles sent to it by a form.
all varibles made and used on the page behave normally.

using the php triad set of sql, apache amd php on windows it all works fine I have had this problem in that past with php on IIS but i never fixed it.

Is this a problem i have to fix with the php setup or is it something to do with the server in this case apache?

Old 10-28-2004, 01:29 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It will only have $blahBlahVarible as a variable if you have RegisterGLobals set to "on" in php.ini - this is considered a slight security flaw and it is reccomended that you reference the query string with:
Old 10-28-2004, 06:29 PM   #3
Registered: Jan 2004
Location: new zealand
Distribution: Mandrake,Slackware
Posts: 165

Original Poster
Rep: Reputation: 30
thanks david ross.

Security isnt too important in this case at the moment. If a users isnt logged in then all varibles passed throught the URL are given a null value. and if the users isnt logged in as me and connecting from the ip and dns of this individual computer from inside the lan then no admin functions are availble at all....
but i think ill re-write the code using the $_GET[" "] methody/functiony thing so that its a more expandable for future stuff. its all an educational exercise im doing to learn sql and better php. so this is exactly what i want,

Cheers again.


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
PHP/MySQL and Apache server setup nenyo Linux - Software 7 02-12-2005 01:48 PM
Apache/PHP/MySQL Setup Help jobless_joe Linux - Software 2 05-30-2004 01:55 PM
PHP Setup in Apache stevem00 Linux - Software 2 01-16-2004 03:59 PM
Apache PHP MySQL Setup after Slackware 9.0 Installation initself Slackware 37 12-20-2003 06:48 AM
Setup Apache and PHP kaustav Linux - Newbie 5 03-31-2003 06:23 PM > Forums > Linux Forums > Linux - Software

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

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