Re: Getting embedded PHP to work with Apache on OSX
by Tom Stiller <tomstiller@[EMAIL PROTECTED]
>
Jul 4, 2008 at 02:24 AM
In article <ypudnTD-adgr8_DVnZ2dnUVZ_rjinZ2d@[EMAIL PROTECTED]
>,
Hamad bin Turki al Salami <hamad@[EMAIL PROTECTED]
> wrote:
> I enabled apache web server and php on an OSX leopard server
> by:
> enabling Web Sharing in Preferences
> uncommenting
> LoadModule php5_module ...
> in httpd.conf
>
> I also created a php.ini file.
>
> When I serve a file with .php extension, everything works fine. However,
> if I serve an .html file with embedded php tags, the tags aren't
> executed. For instance, serving a page with:
>
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <?php phpinfo(); ?>
> </body>
> </html>
>
>
>
> gives a blank page.
>
>
> Is there something else I need to do to get embedded php tags to work?
Isn't that the normal behavior?
--
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF