LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache or php doesn't work properly on RH8.0 (http://www.linuxquestions.org/questions/linux-networking-3/apache-or-php-doesnt-work-properly-on-rh8-0-a-50062/)

abd_bela 03-16-2003 05:00 AM

apache or php doesn't work properly on RH8.0
 
hi every body,
apache or php or both don't work properly on redhat 8.0.

the value val1 (in my script below : test1.php ) is sent to the script test2.php which must print the value, but nothing appears.

the same scripts run correctly on pvevious release RH 7.3 for example.

I looked for the fixed bugs on redhat site, i found a new http i upgrade my http
but the problem stays.
of course the httpd is running, and the php too.

Perhaps the problem is in Php ?

I ll try to install the apache from an older version, but I ll get probably dependance problem

thank you for help

here are the 2 scripts : test1.php calls test2.php
test1.php :

<html>
<body>
<form action="test2.php" method="post">
Send a value <input type="text" name="val1" size=10><br>
<center><input type="submit" value="Send"></center><br>
</form>

</body>
</html>


test2.php

<html>
<body>
<br>

<?php
echo "VALUE IS ",$val1;
?>
</body>
</html>

javascript:smilie(':(')

irish_rover 03-16-2003 09:07 AM

Try making a php script/page that doesn't require another page for input. Something like:
$hello = "Hello World";
echo $hello;
See if that gets interpreted. I'm wondering if you need mod_php?

niehls 03-16-2003 03:11 PM

umm, have you checked your php.ini file so that register_globals is set to 1? try accessing the value through $_POST["val1"] instead of $val1.

maildhanraj 03-17-2003 05:55 AM

hi! abd_bela,
yes that right RH8.0 is the release with Apache 2.0, unstable mod_php and no mod_perl. so that will effect use of the PHP sites, please check the upgrade.
I would recommend RH 7.3
dhanraj sheth
http://linuxdhanraj.tripod.com

abd_bela 03-17-2003 10:23 AM

hi,
Yes in the same file it works correctly.
when I use the post method nothing appears,
but when I use the get method i receive the value on the URL like this

http://172.19.130.5/test2.php?val2=hello+world

where test2.php is the file called and val2 is the variable sent and hello world the content of the variable

What I find very strange is that this script runs correctly on rh7.3

thank you for help

dsltech 03-17-2003 10:34 AM

shouldnt you have to open the php script in the test1 to work?

<html>
<body>
<form action="test2.php" method="post">

<?php

Send a value <input type="text" name="val1" size=10><br>
<center><input type="submit" value="Send"></center><br>

?>

</form>


</body>
</html>

abd_bela 03-18-2003 06:20 AM

for dsltech,
No because it is html code and not php code

regards


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