is there some way to jost take template (HTML ) and code it to PHP by program or dunno by what .
Printable View
is there some way to jost take template (HTML ) and code it to PHP by program or dunno by what .
PHP is a completely different language to HTML, HTML defines the layout and look of the page whereas PHP retrieves information for the page from databases, thus rendering your question completely useless :D
php extends html with what mazo said.
but you may write ordinary html straight to php script. it renders as normal html, until finds php language start/end tags (<?php and ?>) and between those tags php commands are executed.
e.g.
which outputs html page rendered in your web server:PHP Code:<html>
<head>
</head>
<body>
My name is
<?php
echo "[lexx]";
?>
</body>
</html>
so you can't "convert" it.Code:My name is [lexx]
of course, such "conversion" could be by manually re-writing whole code, but it's not automatized work, as you have to decide yourself what elements are required to be php generated..
dosnt necesary need to be from a database... could be a text file or just cookies.. and stuffQuote:
Originally Posted by mazo
you could just echo "" you page then add <?php ?> crap into it
if you dont want to use php code you just rename .htm or .html to .php
there was a program ^^^ that i used once to make this
HTML To PHP Converter 4.2.1.9d Free Trial
GET IT HERE:
Download HTML To PHP Converter 4.2.1.9d Free Trial - HTML To PHP Converter - Quickly and easily convert HTML code to PHP code - Softpedia
Trials always blow, and do these kind of things actually work?
I suppose its better just to recode everything, right?
-Forte.
As mentioned in other posts, HTML is the front end of your site, while php (the server-sided scripting language) is for the backend.
[N]asser` ~ Out