PDA

View Full Version : [SOLVED] firefox embedded php



oradano
July 16th, 2010, 12:51 PM
I'm new to LAMP and PHP, please bear with...

I'm writing smple html pages with embedded php <?php ?> and the php isn't executing, no output to screen. I've added plain text outside the php tags to confirm.

I've got apache httpd.conf configured with AddType's for php. Any other suggestions?

dapperdanny77
July 16th, 2010, 12:57 PM
check if you have installed the php module
> dpkg -l libapache2-mod-php5

then check your apache config if the module is being loaded

you can make a small php to test your installation

<?php
phpinfo()
?>

oradano
July 16th, 2010, 08:04 PM
check if you have installed the php module
> dpkg -l libapache2-mod-php5

then check your apache config if the module is being loaded

you can make a small php to test your installation

<?php
phpinfo()
?>


thanks again for your reply, fun being a newbie, I actually have phpmyadmin installed and working no problem so I knew it was something really obvious

I've been is trying to embed php code inside index.html, it's the other way 'round, index.php can have html tags inside it, I tried with index.php and it's good