<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1256" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<title>Translate English word into Hieroglyphics</title>
</head>
<body>
<center>
<div style="width: 80%; position:absolute; left:10%; top:0%; z-index:1">
<br />
<div class="tabArea" align="center">
<a class="tab" href="example.php">Example</a>
<a class="tab" href="about.html">About</a>
</div>
<div class="Paragraph">
<?php
echo '<br /><h2>Example Code</h2>';
highlight_string("<?php
include('Hiero.class.php');
\$x = new Hiero();
\$word = \$_GET['w'];
\$im = \$x->en2hiero(\$word);
header (\"Content-type: image/jpeg\");
imagejpeg(\$im, '', 80);
ImageDestroy(\$im);
?>");
echo '<br /><br /><h2>Example Output</h2>';
echo '<blockquote><font size="4" face="Times New Roman, Times, serif">';
echo 'Khaled<br /><img src="hiero.php?w=khaled" /><br /><br />';
echo 'Rafah<br /><img src="hiero.php?w=rafah" /><br /><br />';
echo 'Cham<br /><img src="hiero.php?w=cham" /><br /><br />';
echo 'Abdo<br /><img src="hiero.php?w=abdo" /><br /><br />';
echo '</font></blockquote>';
?>
</div>
</div>
</center>
</body>
</html>
|