Can anyone tell me what is the procedure to insert PHP in HTML language?And will file extensiton also change?
nnhamane 0 Newbie Poster
Recommended Answers
Jump to PostYou don't even need the php part in <?php ?>.
Anywhere where you have PHP code instead of HTML, you should use the <? .... ?> to enclose the PHP code.
Also, the file extension should be .php (for example index.php).
Just a precaution:
using <? ?> will work …
Jump to PostIf you don't want to reconfigure Apache, you can set up 301 redirects from your htm files to .php. Some search engines (I think most of them) will keep your page rank and transfer the records to the new location. Don't use 302 redirects, as that's not the same thing.
…
All 7 Replies
digital-ether 399 Nearly a Posting Virtuoso Team Colleague
alpha2006 0 Junior Poster
digital-ether 399 Nearly a Posting Virtuoso Team Colleague
TopDogger 5 Junior Poster in Training
m-soft 0 Junior Poster in Training
remiremi 0 Newbie Poster
Puckdropper 7 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.