Re: php on linux..
| From: | Miguel J. Jiménez | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: php on linux.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174036@lists.php.net to get a copy of this message | ||
khoa vo wrote:
I am a newbie. I'm trying to write a php script and put it on the linux server at school.<--------index.html----------> <form action="action.php" method="POST"> Your name: <input type="text" name="name" /> <input type="submit"> </form> <--------action.php----------> #!/lusr/bin/php Hi <?php echo $_POST["name"]; ?>. I did locate php to find the path where php is installed and i got /lusr/bin/php. index.html is working fine. So after i filled out the index.html form and press SUBMIT. It would print me to the action.php page only that action.php page would display itself. I have been trying to figure out this problem for quite some time and any help would be greatly appreciated. at first, i thought something is wrong with the action.php so i changed the form and index.html but without success. My website is at www.cs.utexas.edu/users/khoa . Thank you for all your help Maybe you need to reconfigure APACHE to recognize the .php mime type... if you dont't have that configured Apache would treat the PHP as text instead of script, thus displaying itself...