1

Topic: How do you convert html to php??

Is there a way to do that??

Or is there an easy php generater to make webpages out of php??

Re: How do you convert html to php??

I get the feeling you don't know what PHP is.

PHP is a programming/scripting language, that can generate more or less any output you want. You can generate images, html documents, or any other file.
To output stuff you often use echo ""; or printf(""); functions in PHP

I suggest you do a few simple "Hello World" scripts to get a basic understanding of how PHP works, and what it does.
Here's a couple of links
http://www.php.net/manual/en/introduction.php
http://www.php.net/manual/en/tutorial.p … quirements

3

Re: How do you convert html to php??

i still really dont get it


could you make a sample code so that i could look at it??

i need it so that it has the bar with this kinda stuff

PunBB.org Index User list Rules Search Profile Logout

go to reinet.org

i want something like the downloads thing

could you kinda guide me on a project like this??

4

Re: How do you convert html to php??

Rename the .html file .php.

5 (edited by Gary13579 2005-02-22 01:15)

Re: How do you convert html to php??

Example PHP code wrote:

<?PHP
echo "
<html>
<head>
<title>Page title</title>
</head>
<body>
Page body
</body>
</html>";
?>

is

HTML equivalant wrote:

<html>
<head>
<title>Page title</title>
</head>
<body>
Page body
</body>
</html>

Indocron
$theQuestion = (2*b) || !(2*b);

6

Re: How do you convert html to php??

so just change this to this

<html>
<head>
<title>Page title</title>
</head>
<body>
Page body
</body>
</html>


to

<?PHP
echo "
<html>
<head>
<title>Page title</title>
</head>
<body>
Page body
</body>
</html>";
?>


and then im done???

7

Re: How do you convert html to php??

No. That works, but there's no reason to do it that way.

PHP is basically just HTML with code embedded in it, inside "<?php" and "?>". All you have to do is make sure no HTML is inside "<?php" and "?>".

What is it you're trying to do, exactly?

8

Re: How do you convert html to php??

im trying to make a link like on this site

reinet.org

i want a downloads thing like his

so guests cant see it and it will update with other people displays ect..

can someone help

i really could use this

Cows

9

Re: How do you convert html to php??

reinet.org appears to be a domain squatter. Did you mistype?

Re: How do you convert html to php??

cows you need to look in functions.php under generate_navlinks ()

php is NOT an alternative to html, it is a way of doing some thinking then outputting different html depending on certain conditions

11

Re: How do you convert html to php??

rei-net.org