I need some help php4 + apache2.0 + linux 8.0 working weird?
Posted: Mon Nov 17, 2003 9:52 am
I was following a PHP4 tutorial using Abyss Web server in Windows, and everything was fine.
But I install my new computer with Linux 8.0 and apache2.0, and of course php4. I think the following is wrong, but I'm not sure
1. I need to turn off "cgi.force_redirect" (php.ini file),if not php give me some errors!
2. I need to include "#!/usr/bin/php" in my first line of my php file, if not the script does not work, and
3. I need to "chmod 555" (or 777) in the php files, example "chmod 777 test1.php". (if not I got the same error that I got in case #2)
If I don't follow those steps I can not get my scrip working.
When I tried to use variables from one page to another (forms->sumit) php is not able to identify the variables comming from my form. I solve this problem doing the following:
any sugestions? changes in httpd.conf maybe? or php.ini, I don't want go back to Windows.
(sorry if my english is not good, is not my primary language)
Thanks in advanced for any help!!!!!!
But I install my new computer with Linux 8.0 and apache2.0, and of course php4. I think the following is wrong, but I'm not sure
1. I need to turn off "cgi.force_redirect" (php.ini file),if not php give me some errors!
2. I need to include "#!/usr/bin/php" in my first line of my php file, if not the script does not work, and
3. I need to "chmod 555" (or 777) in the php files, example "chmod 777 test1.php". (if not I got the same error that I got in case #2)
If I don't follow those steps I can not get my scrip working.
When I tried to use variables from one page to another (forms->sumit) php is not able to identify the variables comming from my form. I solve this problem doing the following:
Code: Select all
<?php
foreach ($_GET as $key=>$value){
if ($key == "user")
print "Your name is :<b> $value </b>\n";
if ($key == "address"){
print "And your address is:<br>\n";
print "<b>$value</b>\n";
}
print "<br>\n<hr>\n;"
}
?>(sorry if my english is not good, is not my primary language)
Thanks in advanced for any help!!!!!!