problems RUNNING php script within html

Problems & Solutions for PHP & MYSQL

problems RUNNING php script within html

Postby PC-ITSOLUTIONS » Sat Sep 19, 2009 9:47 pm

if like me your having problems with running php within html;

try this:

ADD THIS LINE TO YOUR HTACCESS FILE:

Code: Select all
AddHandler cgi-script .html


AND AT THE TOP OF YOUR HTML PAGE something like this:

Code: Select all
#!/usr/bin/php


This must be added on a line on its own !!
PC-ITSOLUTIONS
Site Admin
 
Posts: 2
Joined: Mon Sep 14, 2009 10:31 pm

Return to PHP & MYSQL Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron