[nflug] PHP Inside HTML

Tony E - Jaraeth jaraeth at phoenixwing.com
Thu Nov 20 00:25:09 EST 2008


Yes, however the file extension should end in .php and not .html...
unless you set Apache to parse all HTML files as PHP (not recommended
for possible security and performance reasons).

If you rename it to PHP, then just use <?php function(); ?> within the
html code.

HTH,

  Tony E
  "Raptus regaliter"
  jaraeth at phoenixwing.com
  http://www.phoenixwing.com/



Robert Wolfe wrote:
> Hi all!  
>
> I was wondering, can a PHP script be embedded anywhere inside an HTML file
> and if so, how?
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>
>
>   


More information about the nflug mailing list