How do I make this html file to php?

Hello, I want to make the whole file to php but when I add:

<?php
?>

I just get a white screen… this is the html page:

[php]

Home Forums Logout Flying-Revolution - The Most Innovative MMORPG
			</div>
			</div>
								

			


			
			</center>
			<br>
Welcome to the Ingame CP Usernamehere

</tr>



Username: Username here
Vote Points: Points here
Donator Points: Points here
TeamWars Team: Points here

	</body>

 [/php]

I hope someone can help me…

All regards, Mark

change to filename.php and add this to the top

[php]<?php
// your code here
?>[/php]

changed it to:

[php]
<?php

Home Forums Logout Flying-Revolution - The Most Innovative MMORPG
			</div>
			</div>
								

			


			
			</center>
			<br>
Welcome to the Ingame CP Usernamehere

 </tr>



Username: Username here
Vote Points: Points here
Donator Points: Points here
TeamWars Team: Points here

	</body>

?>

[/php]

and changed it to .php but i get a white screen right now.

I might’ve been unclear

[php]<?php
// your PHP code here
?>

<html here...[/php]

Isn’t it possible to have the html code in the

[code]<php

?>[/code]

Because i want to use some php variables in the html…

You can echo html in PHP, but it looks terrible and violates the logic/view method most program after these days.

You can echo php variables inside the html like this

[php]<?php
// php logic here
?>

<?= $someTitle ?>

<?= $someText ?>

[/php]

thank you, solved! :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service