Wml + Xhtml In Same Php File ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    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

    Comment


      #17
      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 me
      Code:
      <?php
      if(!isset($_GET[&#39;case&#39;])) $_GET[&#39;case&#39;] = &#39;&#39;;
      switch($_GET[&#39;case&#39;]) {
      case &#39;&#39;;
      
      echo "<a href=\"$PHP_SELF?case=1\">wml page</a>
      ";
      echo "<a href=\"$PHP_SELF?case=2\">xhtml page</a>
      ";
      break;
      case &#39;1&#39;:
      header("Content-type: text/vnd.wap.wml;");
      echo &#39;<?xml version="1.0"?>
      <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">&#39;;
      echo &#39;<wml>
      <head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
      <card id="cipssy" title="HomePage">
      <p align="left">
      &#39;;
      
      echo "<a href=\"java.php?case=1\">Java</a>
      ";
      print &#39;</p></card></wml>&#39;;
      
      break;
      case &#39;2&#39;:
       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 &#39;</body></html>&#39;;
      
      break;
      case &#39;3&#39;:
      
      
      echo "Any page format :P";
      
      
      
      
      }
      ?>

      Comment


        #18
        so i still found it lol and now its much better

        Comment


          #19
          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?
          http://ngeo.ro

          Comment

          Working...
          X