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

Thread: 

How to combine HTML and PHP code?

Ads
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: 636
Joined: Jun 2013
Reputation: 34

#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.
damponting44 Offline referral

Posts: 537
Joined: Oct 2016
Reputation: 0

#5
Senior Member
I learned PHP by hacking without end at phpBB2, notwithstanding presenting a couple of mods to their database, which others downloaded and utilized. (I don't trust phpBB2 is upheld any more with phpBB3 out so long now, so the v2 mods database is no more.)





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