Re: newbie problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, February 20, 2006 1:14 pm, Robert Voogdgeert wrote:
> When working with an HTML file with a form with
>
>     <form action="somename.php" method="post">
>
> the somename.php file is served (completely) to my browser as plain
> text
> after the 'submit' button is clicked on my machine (MacOS X). On the
> external webhost though everything is processed correctly...
>
> Is this related to some setting that I should change on my localhost?

You'd need to correctly install PHP on your localhost.

You either didn't install PHP at all, or didn't configure Apache
and/or PHP correctly, and PHP is not running when you request
somename.php

Exactly what went wrong is difficult to guess at without more info...

You may want to work on getting a simpler script to work, namely:

<?php phpinfo();?>

Name this as, say, "phpinfo.php" and surf to it.

It will be blatantly obvious when it works. :-)

General Principles:
If you think Apache/PHP should be working, examine the Apache
error_log file, and re-start Apache, and examine the output of that
restart of Apache as well.

Odds are good something in all that will tell you what is wrong.

Also search through all of httpd.conf for "php" and see if it all
seems to make sense and the relevant bits are not commented out.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux