It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

PHP Script to HTML Site?

Moderator: Malcolm

PHP Script to HTML Site?

Postby kdjuiopo on Tue Aug 02, 2011 9:14 am

Hi there,

could you please tell how to add a PHP Script to an html site. I have a plan to add an instant domain name checker script to my site. But my site is simple html. Could you please tell how to make this work?

Thanks in advance!!
kdjuiopo
50+ Club
 
Posts: 90
Joined: Fri Jul 01, 2011 1:32 am

Re: PHP Script to HTML Site?

Postby rajmv on Wed Aug 03, 2011 2:50 pm

Assuming you can get php installed on your server;

You can just copy the html file to the same name but ending with '.php'

Then you can add the following to that .php file:
<?php
require_once ('/path/to/php-component.php');
use_php_component();
?>
rajmv
100+ Club
 
Posts: 103
Joined: Thu Jul 14, 2011 7:22 am


Who is online

Users browsing this forum: No registered users and 0 guests