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

Thread: 

How to combine HTML and PHP code?

Ads
banner
banner
banner
ladiesman217 Offline referral

Posts: 93
Joined: Jun 2014
Reputation: 0

#1
Member
How do you combine PHP and HTML codes in a single file?
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#2
Senior Member
To include PHP in HTML the file has to have .php extension

PHP Code:
<?php
 
//primary PHP code
 
?>
<html> 
 <title>HTML with PHP</title>
 <body>
 <h1>Example</h1>
 <b>HTML code</b>
 <?php
 
//secondary php code
 
?>
 </body>
 </html> 
ladiesman217 Offline referral

Posts: 93
Joined: Jun 2014
Reputation: 0

#3
Member
What does it mean primary and secondary PHP code?
vinod Offline referral

Posts: 37
Joined: Jun 2014
Reputation: 0

#4
Junior Member
We can integrate the PHP code in HTML to make dynamic.





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