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

Re: [cobalt-users] How to run PHP scripts on RaQ3 (was PHP3)



Kyle Smith <kyle.s@xxxxxxxxxxxxx> wrote:
> > When I type in www.domain.com/phptest.php, it just displays <? echo "<b>PHP4
> > is great.</b>"; ?>
>
> Now when I run it, I get this
>
> PHP4 is great."; ?>
>
> the PHP4 is great. is Bold.

Hi Kyle.  I just read a message where you said that it was displaying the entire
code I told you to enter.  What did you do so that it's not doing that now?

> I edited the srm.conf, httpd.conf, and mime.types with the PHP4 info.
>
> This is what my phptest.php looks like:
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="application/x-httpd-php;
> charset=iso-8859-1">
> </head>

You don't need that meta content type line.  PHP code is pre-processed by PHP on
the server and sent to the client browser as HTML.  I've never used a meta tag
like that.


>
> <body>
> <? echo "<b>PHP4 is great.</b>"; ?>
> </body>
> </html>
>
> What do I need to do to get PHP4 to work properly?

How did you install PHP?  As a DSO module?  Compiled in the httpd binary?  As a
CGI?  Did you restart Apache afterwards?

Steven Werby {steven-lists@xxxxxxxxxxxx}