help me plz,, any one change my html file to php

Afterburn

Guest
Messages
298
Reaction score
0
Points
0
If you page file is named: index.html or index.htm

Just rename the file: index.php

After you do that, you will be able to use php coding in it easily with using php tags:

PHP:
<?php
echo "";
?>
 
Last edited:

freecrm

New Member
Messages
629
Reaction score
0
Points
0
plz,, bor tell me how to
help me dude
thanx

OK - this obviously has to be simpler.

Firstly, you have to understand that pure html or htm files do not have any programming embedded in them.

These will have file endings like index.html or index.htm etc.

php files are usually just html files with php code embedded in them. But in order for the php programming to run, the extension of the filename needs to be .php

Sooo....

Looking at your file (say index.htm), just rename the file by right-clicking and changing just the end so index.htm becomes index.php

That simple!

You then need to put some php language into it.

A simple test could be:

PHP:
<?php echo "This is a test!";?>

or, if you want to see information about the php version you are working with, try..

PHP:
<?php
phpinfo();
?>

I think this is as simple as I can make it!
 
Top