Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 14700

Transformar arquivo PHP em imagem

$
0
0
Olá pessoal eu gostaria de transformar o código PHP abaixo em uma imagem:

Código :
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Server MTA Brasil | Vida de Luxo</title>
<style type="text/css">
body { margin: 0px; background:#fff; font: 8pt Verdana,Arial; color:#000; font-weight: bold;}
#tabela {width: 576px; height: 87px; background-image: url("Fundo.png"); line-height: 20px; }
div.row {background-attachment: fixed;min-height: 20px;line-height: 20px;clear: both;vertical-align: middle;width: 574px;margin-left: 1px;}
div.field {float: left;font-weight: bold;padding-left: 4px;margin-left: 10px;}
div.value {float: center;padding-right: 4px;line-height: 20px;text-align: center;overflow: hidden;}
div#hostname {height: 30px;overflow: hidden;margin-left: 124px;line-height: 42px;margin-top: 0px;margin-bottom: 16px;}
div#icons {width: 24px;height: 40px;float: left;margin-left: 4px;margin-top: 4px;}

a:link {color: #FFFFFF; text-decoration: none;}
a:visited {color: #FFFFFF; text-decoration: none;}
a:active {color: #FFFFFF; text-decoration: none;}
a:hover{color: #000000;}

</style>
</head>

<body>

<!-- Código oculto -->

<div id="tabela">
<div id="icons">
<a href="[url="http://www.mtabrasil.com.br/"]http://www.mtabrasil.com.br/"[/url] target="_blank"><img src="Logo.png"></a>
</div>

<div id="hostname">
<a href="mtasa://173.212.206.22:22013"><?php print ''.$name;?></a>
</div>

<div class="row" style="background-color: rgba(255, 255, 255, 0.75);"><div class="field">Status: <?php print ''.$data; ?></div><div class="value">Players: <?php print ''.$cotacao; ?></div></div>
<div class="row" style="background-color: rgba(255, 255, 255, 0.75);"><div class="field">IP: <a href="mtasa://173.212.206.22:22013"><?php print ''.$ip; ?></a></div><div class="value">Gamemode: <?php print ''.$gamemode; ?></div></div>
</div>


</body>
</html>

Este código ira geras o seguinte no site: http://servers.mtabrasil.com.br/ServerBlog/index.html
E eu gostaria de transformar este código que utiliza html e php, como este exemplo(imagem): http://www.game-state.com/94.23.158.180:22003/430x73_FFFFFF_FF9900_000000_000000.png

OBS: Como exibir como CODE PHP ?

Viewing all articles
Browse latest Browse all 14700

Trending Articles