Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried setting up PHP & MySQL for days now.. i can't seem to do it? i've been following manuals and books exactly..
and shouldn't these come in the distribution anyways? i'm using RH 8.0
i selelcted it.. but it didn't work!!
need some guidance here.
I prefer not to use RPMs for these two apps, partly because I needed to customize PHP further but also because I was able to follow the instructions supplied in PHP's and MySQL's documentation.
I'd suggest removing the PHP and MySQL rpms and grabbing a MySQL binary from mysql.com and the PHP source from php.net.
yeah that worked!
i removed them and re installed them again..
i don't know why the versions that came with the CD didn't work though.. Hmm..
anyways it works..
but another problem with php..
it doesn't seem to be able to pass values from one page to another..
ok, i start with a HTML page with a form, then submit the info to the .php file..
the .php can't seem to read the variables?
Butterbur's advice is correct. You need to do what he's suggested. Make sure you restart apache after making these changes (and make sure you've edited the correct php.ini file Could there be one lying around from the previous installation?)
It IS about enabling the register globals option. $_GET["varname"] (or $_POST["varname"]) is always available, but when register globals is on, then PHP will automagically make $varname available (or 'register' them) in your script as a global variable.
The reason why the book doesn't use them is because the $_GET and $_POST arrays didn't come in until recent version of PHP. It used to be the case that the register globals options was set to 'on' by default. Nowdays it's set to off and the PHP people encourage developers to use the $_GET style method because it's more secure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.