Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

How to create a PHP web-page?

Ads
banner
banner
banner
destroyer Offline referral

Posts: 430
Joined: Jul 2013
Reputation: 3

#1
Senior Member
I have a bit of knowledge creating HTML web-pages but since I need to add some PHP code to my HTML code I would really appreciate if some could explain how to make a PHP page that will content my HTML content along with PHP?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
Here is how you create PHP page! Remember to save it as page.php

PHP Code:
<?php
// your php code goes here!

// HTML begins here!
<html>
<
head>
</
head>
<
body>
</
body>
</
html>
?>

Directly add php into html code! First declare it in the PHP area and then use the variable in the HTML area!
vikas Industries Offline referral

Posts: 61
Joined: Apr 2015
Reputation: 0

#3
Member
<html>
<body>

<?php
echo "My first PHP Program!";
?>

</body>
</html>
dswtechnologies Offline referral

Posts: 97
Joined: Aug 2015
Reputation: 1

#4
Member
you can start with <? and end with ?> you can test anything between this code.
John Oldman Offline referral

Posts: 25
Joined: Jul 2015
Reputation: 3

#5
Junior Member
Here good tutorials:
Creating a Web Site
If you’ve built a few websites from scratch
And How to choose a PHP framework





User(s) browsing this thread: 1 Guest(s)