Dynadot โ€” .com Registration $8.99

Html to php?

Spaceship Spaceship
Watch

Host47

Established Member
Impact
27
Do any of those html to php convertors work, are they any good if so, I have a sd that needs coding html/php to work with some sort of news script like cutenews aswell as invision login and latest posts etc, but I can't afford to pay anyone to code it, I can get it done in html for free by a friend and just wondering if these convertors are any good..

regards

John
 
1
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You can convert from HTML to PHP just by renaming the .html file as a .php file. PHP won't find any <?php start tags so will parse the page as normal HTML.
 
0
•••
Actually, I don't know if this is useful, but you can embed HTML inside a PHP code via the echo command.

Ex:
Code:
<php?
echo="Hello, this is written in PHP!"
echo="<html><marquee>And this is HTML, echoed inside PHP!</marquee></html>"
?>
 
0
•••
thnx guys but it doesn't help this n00b...lol, te site really needs to be php in order to use includes for various pages and invision new posts, login etc...looks liek i'll have to save and get someone to code it :(.
 
0
•••
i dont get the question

only the php parts need to be in php, to have an include, its just:

<? include("filename") ?>
 
0
•••
Albino said:
i dont get the question

only the php parts need to be in php, to have an include, its just:

<? include("filename") ?>

I don't really get it either. I think maybe he has forms in HTML that he wants in php...?
 
0
•••
I have a website in html.

I want to use a news management script to display news, stories on front page, plus adding a login for the invision forums and to show the new posts from the forums on the index.

But when i insert the includes code it won't show. Someone said the page needs to be php, so does the manual for cutenews.

I did say I was a n00b...lol
 
0
•••
To include the file, you need to rename the file from .html to .php then just paste the following code where you want the include:

<?php include("../path/to/cutenews.php"); ?>

That simple :).
 
0
•••
Sparky2002b said:
Actually, I don't know if this is useful, but you can embed HTML inside a PHP code via the echo command.

Ex:
Code:
<php?
echo="Hello, this is written in PHP!"
echo="<html><marquee>And this is HTML, echoed inside PHP!</marquee></html>"
?>
Don't use echo! html does not go inside php or asp tags.

btw, Kit is right, all you have to do is rename the page to ".php" and then you can have php code in it.
 
0
•••
sorted now, cheers, dunno why it wasn't working >:(, the php code wsn't showing up right..
 
0
•••
Rowan W said:
Don't use echo! html does not go inside php or asp tags.

btw, Kit is right, all you have to do is rename the page to ".php" and then you can have php code in it.

Actually, it can. But you can also do something like this:
Code:
<?php
echo="PHPHPHPHP"
?>
<html>
<font size=3>
HTMLHTMLHTML
</font>
</html>
 
0
•••
Personally, I don't use "echo=" but simply "echo"

PHP:
<?php
echo "hey man, this is the way to echo a ".$variable;
echo 'and you can also open echo commands with single quotes';
?>
 
0
•••
Of course you can echo html but when you do it becomes almost unreadable in all the mass. You also have to either use single ' quotation marks or double "" quotation marks for something like align=""center"".

It's easier to use something like:

<div id="content"><php?stringName?></div>
 
0
•••
ReaperUK said:
Do any of those html to php convertors work, are they any good if so, I have a sd that needs coding html/php to work with some sort of news script like cutenews aswell as invision login and latest posts etc, but I can't afford to pay anyone to code it, I can get it done in html for free by a friend and just wondering if these convertors are any good..

regards

John

Simply use this tool for conversion if you are a newbie.

http://corz.org/public/scripts/php/source/tag-tools.php

you can convert HTML to PHP and vice versa.

It will give you the output code and save the file in which format you want.

All the best.
 
0
•••
I would believe those HTML to PHP things make your code quite dirty if they alter anything. It is true, changing the extension will make it PHP. If you are talking about changing the whole site from HTML to PHP then I would say get a book and start toying with it. It is always good to know some PHP.

Hope This Helped...
 
0
•••
I think the best way is to allow your friend to code it in html then save the file as php
 
0
•••
cheers guys, after all that the design doesn't fit the php includes properly, it doesn't look right :(....
 
0
•••
0
•••
ReaperUK said:
Do any of those html to php convertors work, are they any good if so, I have a sd that needs coding html/php to work with some sort of news script like cutenews aswell as invision login and latest posts etc, but I can't afford to pay anyone to code it, I can get it done in html for free by a friend and just wondering if these convertors are any good..

regards

John

WTF? Cutenews comes with a tutorial and before you launch your site rename the files from .htm to .php and you should be fine. Search for chmoding aswell mate.
:hi:

ReaperUK said:
cheers guys, after all that the design doesn't fit the php includes properly, it doesn't look right :(....
go to options then edit templates and you can chage the html of the news posts mate.
 
0
•••
Just rename your HTML file to PHP.. as simple as that..
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back