What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » HTML > PHP

HTML > PHP
Author: Message:
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
35 / Male / Flag
Joined: Aug 2003
RE: HTML > PHP
quote:
Originally posted by Shadow
Hello everyone, i have made a page in HTML that actually needs to be coded in php, is there a way to easily convert the code?? :S

Rename the Page to end in ".php". When it's requested by a browser, it'll come out exactly the same (unless there are PHP start marks ("<?php" or "<?" with short tags enabled in PHP) in the page code).

You can add bits of PHP where they need to go into the existing code.

This post looks long, but it's simple and only looks long because there's lots of space. Have a read of the examples below.


awesome.html:
code:
<html>
<body>
The date is 2006-11-30. It is a Thursday.
</body>
</html>
gives:
quote:
The date is 2006-11-30. It is a Thursday.

awesome.php:
code:
<html>
<body>
The date is 2006-11-30. It is a Thursday.
</body>
</html>

gives:
quote:
The date is 2006-11-30. It is a Thursday.

awesomer.php
code:
<html>
<body>
The date is <?php date(Y-m-d) ?>. It is a <?php date(l) ?>.
</body>
</html>

gives:
quote:
The date is <the date now>. It is a <whatever day today is>.

This post was edited on 11-30-2006 at 11:10 AM by rav0.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
11-30-2006 10:33 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HTML > PHP - by Eddie on 11-28-2006 at 01:55 PM
RE: HTML > PHP - by xJ + on 11-28-2006 at 02:00 PM
RE: HTML > PHP - by Adeptus on 11-28-2006 at 02:03 PM
RE: HTML > PHP - by RaceProUK on 11-28-2006 at 03:21 PM
RE: HTML > PHP - by absorbation on 11-28-2006 at 04:56 PM
RE: HTML > PHP - by RaceProUK on 11-28-2006 at 07:18 PM
RE: HTML > PHP - by Mike on 11-28-2006 at 07:21 PM
RE: HTML > PHP - by rav0 on 11-30-2006 at 10:33 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On