Click to See Complete Forum and Search --> : Running PHP application On Linux SErver


ckb
07-15-2003, 06:27 AM
Running PHP application On Linux SErver
Hi all,

I am facing problem when i try to put my PHP pages on Linux Server

which is working fine in windows . I have Red Hat Linux V 8.0 and i

added package apache web server, Mysql Server in that .(added PHP and

all things ) But my php page is not working.(no error but the script is

not executing at all...(even the simple one !!) .pls help me.. thanks

in advance..
ckb

PHP Version is 4.2.2 and my code is below:

<html>
<body>
<?php
if (!$submit)
{
?>
<form name="frmentry" action = "<?php echo "$_SERVER[PHP_SELF]"; ?>"

method="POST">
<font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b> Full

Name </b></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="text" name="txtFullName" size="30"

maxlength="50"></font>
<br>
<input type="submit" name="submit" value="Submit" >
<input type="reset" name="Submit2" value="Reset">
</form>
<?php
}
else
{
?>

<font face="Verdana, Arial, Helvetica, sans-serif"

size="1"><b>Entered Full Name is </b></font>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2" >
<input type="text" name="txtFullName" value="<?php echo

$txtFullName; ?>" size="30" maxlength="50" ></font>
<?
}
?>
</body>
</html>

The Chancer
07-15-2003, 10:48 AM
Have you tried the old <? phpinfo() ?> to see what you get ?

ckb
07-15-2003, 01:01 PM
hi chancer,

I am getting the php informations when I give <?phpinfo()?> ....(all settings) So PHP is working and apache server also running..plus mysql....Main thing is that the php file is not executing....For executing we need to have the rpm set no...when we include all php things in linux we get it automatically no???

pls help.
regard
ckb
can u help me

ckb
07-16-2003, 03:56 AM
HI,

Now my simple php page ( which i mentioned earlier) is working when i

made the changes ..
to
PHP:-------------------------------------------------------------------

-------------
<?php echo $_SERVER['PHP_SELF']; ?>




PHP:-------------------------------------------------------------------

-------------
<input type="text" name="txtFullName" value="<?php echo

$_POST['txtFullName']; ?>" size="30" maxlength="50" >
---------------------------------------------------------

it would be better to use
PHP:-------------------------------------------------------------------

-------------
if (!isset($_POST['submit']))
thanks a lot.

Now the problem with the connection

to mysql from php. when i tried to open phpmyadmin (version 2.1.0) i am

getting the message
"cannot load mysql extension. Please check configuration."
when i checked documentation i understood that if u install PHP-MySQL

package properly this will be OK.... From where i get this package...
pls help...
thanx in advance

ckb

Weedpacket
07-16-2003, 09:20 AM
Originally posted by ckb
getting the message
"cannot load mysql extension. Please check configuration." You can do this by looking at the configuration line near the top of that page phpinfo() generated. This is a copy of the configuration line you gave when you configured PHP; there should be a --with-mysql in there.

I'm moving this to the Install forum, as it looks more like an installation problem to me.