0

I have a html template with html,css and javascript...can anyone help me in converting this html template to php page.I am a beginner in php so kindly send me some tutorials which explains this conversion

5 Answers 5

1

change the format of page to index.html to index.php

if you write php code on .php page :-

<?php
//your php code 
?>

Set Up PHP on Your Own PC However, if your server does not support PHP, you must:

install a web server install PHP install a database, such as MySQL The official PHP website (PHP.net) has installation instructions for PHP: http://php.net/manual/en/install.php

PHP Tutorial

Sign up to request clarification or add additional context in comments.

Comments

0

HTML, CSS, PHP and JavaScript can be embedded with each other without any issue.

We can write any HTML, JavaScript or CSS code in PHP.

So, you can rename your .html file to .php.

And run this PHP on a web server e.g. WAMP server.

1 Comment

i renamed the .html file to .php and tried running it in a WAMP server. but its not working.
0

Just place code inside <?php ?> with file extension of .php

<?php
    #php code 
?>

or for now

Online Html to PHP Converter Yellowpipe Internet Services

Comments

0

Change the extension of your file like .html to .php and put your php code in it as your requirement.

Comments

0

Just change the format from .html to .php inserting <?php ?> is not essential it will work fine with out adding it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.