Use of Serial type

Use of Serial type

am 19.09.2002 01:17:15 von Warren Massengill

RedHat 7.2 RPM with PostgreSQL 7.1.x and PHP 4.0.6

Page 111 of PHP and PostgreSQL, this form displays in Mozilla. The submit
button is expected to run a script called reaction.php but it opens the
script and displays the code. The response is the same with or without
variable input.

I changed the script file to executable: no effect.

I can run 'reaction.php' from the shell and it works.
What is the problem here?

Thanks,
Warren

---------------------------------
form
------------------------------------------------------------ ---


A Simple Form












-------------
Reaction.php
------------------------------------------------------------ ---

if ($field_1)
{
echo "field_1: $field_1";
}
else
{
echo "nothing has been passed to this script";
}
?>
----------------------
run as stand alone php
------------------------------------------------------------ ------
bash-2.05$ php < reaction.php
X-Powered-By: PHP/4.0.6
Content-type: text/html
nothing has been passed to this script
------------------------------------------------------------ -------






____________________________________________________________ _____
Send and receive Hotmail on your mobile device: http://mobile.msn.com


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Re: Use of Serial type

am 19.09.2002 02:43:12 von Keary Suska

on 9/18/02 5:17 PM, warrenmassengill@hotmail.com purportedly said:

> RedHat 7.2 RPM with PostgreSQL 7.1.x and PHP 4.0.6
>
> Page 111 of PHP and PostgreSQL, this form displays in Mozilla. The submit
> button is expected to run a script called reaction.php but it opens the
> script and displays the code. The response is the same with or without
> variable input.
>
> I changed the script file to executable: no effect.
>
> I can run 'reaction.php' from the shell and it works.
> What is the problem here?

Apache is not configured properly to recognize the .php extension. Look at
the installation instructions for the AddType directives you must have.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly