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

Re: PHP code won't run



On 06/21/2013 02:43 PM, David Guntner wrote:
Gary Roach grabbed a keyboard and wrote:
On 06/21/2013 01:21 PM, Jerry Stuckle wrote:
Does your web page have a .php extension?  What do you have in
/etc/apache2/mods-enabled?

The web page has an .html extension. Is a .php extension necessary if
there is PHP code mixed within html?
Yup.  Otherwise, Apache doesn't know it needs to feed the code to the
PHP engine.

               --Dave



I changed the file to .php. It now prints nothing.
index.html => file:///var/www/phpinfo.php => php code
Another link, index.html => file///var/www/myProject/enterdb.html works fine as far as the html code is concerned but the call to a php file doesn't.

Confused!

Gary Rl


Reply to: