ur index file was a mess plus the fact that its over 200kb makes it nitemare 2 find 1 particular error thats y i code bit by bit testing as i go
Wml + Xhtml In Same Php File ?
Collapse
X
-
linkrx7 -
Guest
Why is'it lavalair here i don't request that! I wanna to create a simple page where to be WML and XHTML and blackhowk resolved meCode:<?php if(!isset($_GET['case'])) $_GET['case'] = ''; switch($_GET['case']) { case ''; echo "<a href=\"$PHP_SELF?case=1\">wml page</a> "; echo "<a href=\"$PHP_SELF?case=2\">xhtml page</a> "; break; case '1': header("Content-type: text/vnd.wap.wml;"); echo '<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">'; echo '<wml> <head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head> <card id="cipssy" title="HomePage"> <p align="left"> '; echo "<a href=\"java.php?case=1\">Java</a> "; print '</p></card></wml>'; break; case '2': header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"; echo "<head>\n"; echo "<title>HomePage</title>"; echo "</head>\n"; echo "<body bgcolor=\"white\" link=\"#008000\" fontcolor=\"yellow\" vlink=\"#0000CC\" alink=\"#0000CC\">"; echo "<left>"; echo "<a href=\"java.php?case=2\">Java</a> "; print '</body></html>'; break; case '3': echo "Any page format :P"; } ?>
Comment
-
Guest -
i see more modes about this.
a. if you use GLOBALS ON your script have serious problem with security - and if my ****ty host dont support ON?
b. if you use huge clases maybe your server dont parse well this -and whay you use classes if you maybe dont know how its made?
c. one simple switch wml 2 xhtml or xhtml 2 wml solve the problem.
as i says: wich script is more lite, easy to use and allow the editor to create compact features?whay should i use this class or core or more inutils functions ( wich i dont know what is ) in one new site or new script?
Comment
Comment