PDA

View Full Version : HTML to php 0_o



Luke
28-05-2007, 08:23 PM
i thought this wasn't possible but there is a SORT OF crappy way to convert HTML to php


<?php
echo "<html>\n";
echo "\n";
echo "<head>\n";
echo " <base target=\"mainframe\">\n";
echo "<meta http-equiv=\"Content-Language\" content=\"en-gb\">\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n";
echo "<title>Habtown</title>\n";
echo "<style type=\"text/css\">\n";
echo "<!--\n";
echo ".style1 {font-family: Verdana, Arial, Helvetica, sans-serif}\n";
echo "body,td,th {\n";
echo " font-family: Verdana, Arial, Helvetica, sans-serif;\n";
echo " font-size: 10px;\n";
echo " color: #FFFFFF;\n";
echo "}\n";
echo "body {\n";
echo " background-color: #F0F0F0;\n";
echo "}\n";
echo "-->\n";
echo "</style>\n";
echo "\n";
echo "<style type=\"text/css\">\n";
echo ".menutitle{\n";
echo "cursor:pointer;\n";
echo "margin-bottom: 5px;\n";
echo "background-color:#ECECFF;\n";
echo "color:#000000;\n";
echo "width:140px;\n";
echo "padding:2px;\n";
echo "text-align:center;\n";
echo "font-weight:bold;\n";
echo "/*/*/border:1px solid #000000;/* */\n";
echo "}\n";
echo "\n";
echo ".submenu{\n";
echo "margin-bottom: 0.5em;\n";
echo "}\n";
echo "</style>\n";
echo "\n";
echo "<script type=\"text/javascript\">\n";
echo "\n";
echo "/***********************************************\n";
echo "* Switch Menu script- by Martial B of http://getElementById.com/\n";
echo "* Modified by Dynamic Drive for format & NS4/IE4 compatibility\n";
echo "* Visit http://www.dynamicdrive.com/ for full source code\n";
echo "***********************************************/\n";
echo "\n";
echo "var persistmenu=\"yes\" //\"yes\" or \"no\". Make sure each SPAN content contains an incrementing ID starting at 1 (id=\"sub1\", id=\"sub2\", etc)\n";
echo "var persisttype=\"sitewide\" //enter \"sitewide\" for menu to persist across site, \"local\" for this page only\n";
echo "\n";
echo "if (document.getElementById){ //DynamicDrive.com change\n";
echo "document.write('<style type=\"text/css\">\n')\n";
echo "document.write('.submenu{display: none;}\n')\n";
echo "document.write('</style>\n')\n";
echo "}\n";
echo "\n";
echo "function SwitchMenu(obj){\n";
echo " if(document.getElementById){\n";
echo " var el = document.getElementById(obj);\n";
echo " var ar = document.getElementById(\"masterdiv\").getElementsByTagName(\"span\"); //DynamicDrive.com change\n";
echo " if(el.style.display != \"block\"){ //DynamicDrive.com change\n";
echo " for (var i=0; i<ar.length; i++){\n";
echo " if (ar[i].className==\"submenu\") //DynamicDrive.com change\n";
echo " ar[i].style.display = \"none\";\n";
echo " }\n";
echo " el.style.display = \"block\";\n";
echo " }else{\n";
echo " el.style.display = \"none\";\n";
echo " }\n";
echo " }\n";
echo "}\n";
echo "\n";
echo "function get_cookie(Name) { \n";
echo "var search = Name + \"=\"\n";
echo "var returnvalue = \"\";\n";
echo "if (document.cookie.length > 0) {\n";
echo "offset = document.cookie.indexOf(search)\n";
echo "if (offset != -1) { \n";
echo "offset += search.length\n";
echo "end = document.cookie.indexOf(\";\", offset);\n";
echo "if (end == -1) end = document.cookie.length;\n";
echo "returnvalue=unescape(document.cookie.substring(off set, end))\n";
echo "}\n";
echo "}\n";
echo "return returnvalue;\n";
echo "}\n";
echo "\n";
echo "function onloadfunction(){\n";
echo "if (persistmenu==\"yes\"){\n";
echo "var cookiename=(persisttype==\"sitewide\")? \"switchmenu\" : window.location.pathname\n";
echo "var cookievalue=get_cookie(cookiename)\n";
echo "if (cookievalue!=\"\")\n";
echo "document.getElementById(cookievalue).style.display =\"block\"\n";
echo "}\n";
echo "}\n";
echo "\n";
echo "function savemenustate(){\n";
echo "var inc=1, blockid=\"\"\n";
echo "while (document.getElementById(\"sub\"+inc)){\n";
echo "if (document.getElementById(\"sub\"+inc).style.display==\"block\"){\n";
echo "blockid=\"sub\"+inc\n";
echo "break\n";
echo "}\n";
echo "inc++\n";
echo "}\n";
echo "var cookiename=(persisttype==\"sitewide\")? \"switchmenu\" : window.location.pathname\n";
echo "var cookievalue=(persisttype==\"sitewide\")? blockid+\";path=/\" : blockid\n";
echo "document.cookie=cookiename+\"=\"+cookievalue\n";
echo "}\n";
echo "\n";
echo "if (window.addEventListener)\n";
echo "window.addEventListener(\"load\", onloadfunction, false)\n";
echo "else if (window.attachEvent)\n";
echo "window.attachEvent(\"onload\", onloadfunction)\n";
echo "else if (document.getElementById)\n";
echo "window.onload=onloadfunction\n";
echo "\n";
echo "if (persistmenu==\"yes\" && document.getElementById)\n";
echo "window.onunload=savemenustate\n";
echo "\n";
echo "</script>\n";
echo "<script type=\"text/javascript\">\n";
echo "\n";
echo "//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:\n";
echo "//Separate each ID with a comma. Examples: [\"myframe1\", \"myframe2\"] or [\"myframe\"] or [] for none:\n";
echo "var iframeids=[\"middle\"]\n";
echo "\n";
echo "//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):\n";
echo "var iframehide=\"yes\"\n";
echo "\n";
echo "var getFFVersion=navigator.userAgent.substring(navigat or.userAgent.indexOf(\"Firefox\")).split(\"/\")[1]\n";
echo "var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers\n";
echo "\n";
echo "function resizeCaller() {\n";
echo "var dyniframe=new Array()\n";
echo "for (i=0; i<iframeids.length; i++){\n";
echo "if (document.getElementById)\n";
echo "resizeIframe(iframeids[i])\n";
echo "//reveal iframe for lower end browsers? (see var above):\n";
echo "if ((document.all || document.getElementById) && iframehide==\"no\"){\n";
echo "var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])\n";
echo "tempobj.style.display=\"block\"\n";
echo "}\n";
echo "}\n";
echo "}\n";
echo "\n";
echo "function resizeIframe(frameid){\n";
echo "var currentfr=document.getElementById(frameid)\n";
echo "if (currentfr && !window.opera){\n";
echo "currentfr.style.display=\"block\"\n";
echo "if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax\n";
echo "currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextr aHeight; \n";
echo "else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax\n";
echo "currentfr.height = currentfr.Document.body.scrollHeight;\n";
echo "if (currentfr.addEventListener)\n";
echo "currentfr.addEventListener(\"load\", readjustIframe, false)\n";
echo "else if (currentfr.attachEvent){\n";
echo "currentfr.detachEvent(\"onload\", readjustIframe) // Bug fix line\n";
echo "currentfr.attachEvent(\"onload\", readjustIframe)\n";
echo "}\n";
echo "}\n";
echo "}\n";
echo "\n";
echo "function readjustIframe(loadevt) {\n";
echo "var crossevt=(window.event)? event : loadevt\n";
echo "var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement\n";
echo "if (iframeroot)\n";
echo "resizeIframe(iframeroot.id);\n";
echo "}\n";
echo "\n";
echo "function loadintoIframe(iframeid, url){\n";
echo "if (document.getElementById)\n";
echo "document.getElementById(iframeid).src=url\n";
echo "}\n";
echo "\n";
echo "if (window.addEventListener)\n";
echo "window.addEventListener(\"load\", resizeCaller, false)\n";
echo "else if (window.attachEvent)\n";
echo "window.attachEvent(\"onload\", resizeCaller)\n";
echo "else\n";
echo "window.onload=resizeCaller\n";
echo "\n";
echo "</script>\n";
echo "</head>\n";
echo "\n";
echo "<body topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\" style=\"background-color: #FFFFFF\">\n";
echo "\n";
echo "<html>\n";
echo "\n";
echo "<body style=\"background-color: #FFFFFF\">\n";
echo "\n";
echo "<html>\n";
echo "\n";
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td background=\"latest_5.png\" width=\"89\" height=\"28\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " &nbsp;</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "<html>\n";
echo "\n";
echo "<body style=\"background-color: #FFFFFF\">\n";
echo "\n";
echo "<div align=\"left\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"922\" style=\"border-collapse: collapse\" bordercolor=\"#111111\">\n";
echo " <tr>\n";
echo " <td width=\"249\" valign=\"top\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"249\" height=\"116\">\n";
echo " <tr>\n";
echo " <td height=\"12\" background=\"top_left.png\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: -7px; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"top_left.gif\" width=\"249\" height=\"11\"></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\" background=\"habtown%20online/login_forum.bmp\">\n";
echo " <p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;<p style=\"margin-top: -7px; margin-bottom: 0\">\n";
echo " &nbsp;</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " <td width=\"701\" height=\"0\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;</p>\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;</p>\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;</p>\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;</p>\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">\n";
echo "<p style=\"margin-top: -7px; margin-bottom: 0\">c#<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;<p style=\"margin-top: -7px; margin-bottom: 0\">&nbsp;</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"2\" width=\"950\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"bar_top.gif\" width=\"950\" height=\"6\"></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td background=\"bar.PNG\" valign=\"top\" width=\"950\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">\n";
echo " <tr>\n";
echo " <td width=\"248\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;\n";
echo " </td>\n";
echo " <td height=\"120\" width=\"525\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " &nbsp;&nbsp;&nbsp;&nbsp; <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">&nbsp;<p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " </td>\n";
echo " <td height=\"120\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;\n";
echo " </p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td background=\"top_bar.png\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"bottom_bar.gif\" width=\"950\" height=\"10\"></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan=\"2\" valign=\"top\" width=\"950\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"950\">\n";
echo " <tr>\n";
echo " <td width=\"220\" valign=\"top\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"249\">\n";
echo " <tr>\n";
echo " <td background=\"login.PNG\" width=\"10\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"224\">\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"224\">\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"box_top.PNG\" width=\"224\" height=\"5\"></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td bgcolor=\"#111111\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;Navigation</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td background=\"box.PNG\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">&nbsp;<p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <div id=\"masterdiv\">\n";
echo "\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <img src=\"habtown.png\" onclick=\"SwitchMenu('sub1')\"><br>\n";
echo " <span class=\"submenu\" id=\"sub1\">\n";
echo " <b> &nbsp;<a href=\"home.htm\" target=\"middle\">Homepage</a></b><br>\n";
echo " <b> &nbsp;<a href=\"\" target=\"middle\">Contact Us</a></b><br>\n";
echo " <b> &nbsp;<a href=\"\" target=\"middle\">Link Us</a></b><br>\n";
echo " <b> &nbsp;<a href=\"disclaimer.htm\" target=\"middle\">Disclaimer</a></b><br>\n";
echo " <b> &nbsp;<a href=\"staff.htm\" target=\"middle\">The Team</a></b><br>\n";
echo " <b> &nbsp;<a href=\"\" target=\"middle\">Donators</a></b><br>\n";
echo " <b> &nbsp;<a href=\"history.htm\" target=\"middle\">History</a></b><br>\n";
echo " <b> &nbsp;<a href=\"alts.htm\" target=\"middle\">Alterations</a></b><br>\n";
echo " <b> &nbsp;<a href=\"jobapps.htm\" target=\"middle\">Job Applications</a></b><br>\n";
echo "</span><br/>\n";
echo "\n";
echo "<img src=\"news.png\" onclick=\"SwitchMenu('sub2')\"><br>\n";
echo " <span class=\"submenu\" id=\"sub2\">\n";
echo " <b> &nbsp;<a href=\"home.htm\" target=\"middle\">Homepage</a></b><br>\n";
echo "</span><br/>\n";
echo "\n";
echo " \n";
echo " \n";
echo "\n";
echo "</div>\n";
echo "</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <img border=\"0\" src=\"file:///C:/Documents%20and%20Settings/HP_Administrator/My%20Documents/My%20Web%20Sites/habtown%20online/news.PNG\" width=\"140\" height=\"20\"></p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <img border=\"0\" src=\"community.PNG\" width=\"140\" height=\"20\"></p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <img border=\"0\" src=\"radio.PNG\" width=\"140\" height=\"20\"></p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <img border=\"0\" src=\"guides.PNG\" width=\"140\" height=\"20\"></p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">\n";
echo " <img border=\"0\" src=\"articles.PNG\" width=\"140\" height=\"20\"></p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 2px\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"box_bottom.PNG\" width=\"224\" height=\"5\"></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">&nbsp;</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td height=\"47\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"224\">\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <font color=\"#000000\">\n";
echo " <img border=\"0\" src=\"box_top.PNG\" width=\"224\" height=\"5\"></font></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td bgcolor=\"#111111\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <font color=\"#000000\">&nbsp;</font>Latest \n";
echo " Updates</p></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td background=\"box.PNG\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " &nbsp;<p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"box_bottom.PNG\" width=\"224\" height=\"5\"></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table></td>\n";
echo " </tr>\n";
echo " \n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"222\" height=\"58\">\n";
echo " <tr>\n";
echo " <td height=\"5\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " &nbsp;<p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">&nbsp;</p>\n";
echo "</td>\n";
echo " </tr>\n";
echo " </table></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"left_bottom.gif\" width=\"249\" height=\"6\"></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " <td valign=\"top\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"706\">\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"662\">\n";
echo " <tr>\n";
echo " <td background=\"content.png\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"652\">\n";
echo " <tr>\n";
echo " <td width=\"100%\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " \n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"662\">\n";
echo " <tr>\n";
echo " <td background=\"content.png\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <div align=\"center\">\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"652\">\n";
echo " <tr>\n";
echo " <td width=\"100%\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " \n";
echo "<script type=\"text/javascript\">\n";
echo " //<![CDATA[\n";
echo " window.onload = function() {\n";
echo " var f = document.getElementById(\"mainframe\");\n";
echo " function resize() {\n";
echo " var h = \"\";\n";
echo " var w = \"\";\n";
echo " if (f.contentDocument) {\n";
echo " h = f.contentDocument.documentElement.offsetHeight + 20 + \"px\";\n";
echo " // can't find anything for Opera and Firefox that works for the width. OffetWidth doesn't work right either.(f.contentDocument.documentElement,\"\").getPropertyValue(\"width\");\n";
echo " } else if (f.contentWindow) {\n";
echo " h = f.contentWindow.document.body.scrollHeight + 5 + \"px\";\n";
echo " } else {\n";
echo " return;\n";
echo " }\n";
echo " f.setAttribute(\"height\",h);\n";
echo " f.parentNode.setAttribute(\"height\",h);\n";
echo " }\n";
echo " if (window.addEventListener) {\n";
echo " f.onload = resize;\n";
echo " } else if (f.attachEvent) {\n";
echo " f.attachEvent(\"onload\", resize);\n";
echo " } else {\n";
echo " return;\n";
echo " }\n";
echo " resize();\n";
echo " }\n";
echo " //]]>\n";
echo " </script>\n";
echo " <p align=\"left\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <iframe width=\"99%\" id=\"middle\" src=\"home.htm\" marginwidth=\"1\" marginheight=\"1\" name=\"middle\" scrolling=\"no\" border=\"0\" frameborder=\"0\" allowtransparency=\"yes\" scrolling=\"no\" height=\"150\"></iframe></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF\">\n";
echo " <p style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <img border=\"0\" src=\"content_bottom.png\" width=\"662\" height=\"6\"></p>\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " <font color=\"#000000\"><b> \n";
echo " Habtown.net © Copyright 2007</b></font></td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "</div>\n";
echo "\n";
echo "<p align=\"center\"><br>\n";
echo " \n";
echo "</body>Where do you live?</p>\n";
echo " \n";
echo "</body></html>\n";
?>


i found a converter and i waned to see if it was possible and this came out?

thoughts?

Mentor
28-05-2007, 08:25 PM
Its just writeing out every line of html with a echo? how stupids that, all it does is waste cpu cycles lol

Aflux
28-05-2007, 08:25 PM
What the hell is the point in that?!

Drompo
28-05-2007, 08:25 PM
Its Crap

Luke
28-05-2007, 08:26 PM
thought so :P

i didn't make it thank god xD

:Edzy
28-05-2007, 08:30 PM
lol the tediousness :)

CHTom
28-05-2007, 08:31 PM
Theres no point in that.

a HTML to PHP converter? WTH? All its ever going to do is echo or print html code.

Want to hide these adverts? Register an account for free!