ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Now the main "standard" question: what did you exactly read on PHP $_GET ? I.e. based on what exactly documentation/tutorial/example you think your code should work ?
Now the main "standard" question: what did you exactly read on PHP $_GET ? I.e. based on what exactly documentation/tutorial/example you think your code should work ?
Quickly looking at this the problem appears to be twofold:
First your looping syntax is wrong: I believe that it should be foreach ($ARRAY as $KEY => $VALUE)
Second you need to understand how to view the error messages that PHP generates. By default PHP doesn't display the error message on the screen but in a log file. You can change this characteristic by looking at the php configuration file php.ini, or you can look at the php log file where php specific errors are logged the path to the error log file is given in the apache configuration file
The default location for the ini file is /etc/php.ini but it could be different for your system.
The parts of the ini file that you need to locate is:
display_errors
log_errors
error_reporting
The default location for the apache configuration file is /etc/httpd/conf/hpptd.conf search for the term logfile, the default location will be /etc/httpd/logs/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.