Script Help Please

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

    Script Help Please

    hello php programmers can you please tell me how to embed php on wml and xhtml pages.i thaught i should just save my page as .php and everything would be fine but that only works for normal html only

    #2
    hello php programmers can you please tell me how to embed php on wml and xhtml pages.i thaught i should just save my page as .php and everything would be fine but that only works for normal html only[/b]
    hmm, how have you put your script?..

    Comment


      #3
      be concret.what you wont to do give a cod just like exemple...

      Comment


        #4
        ok bro.i dont know much about script but i just save my page as for example index.php and i write
        <?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?><!DOCTYPE wml PUBLIC &#39;-//WAPFORUM//DTD WML 1.1//EN&#39; &#39;http://www.wapforum.org/DTD/wml_1.1.xml&#39;><wml>
        <card id="c1" title="Hugo5 © 2007">
        <p align="center">
        [+]hugo5.r8.org[+]

        Coming Soon...

        Site has been closed temporarily.

        But we will be back.!

        And when we do you can expect much more as we will be moving to our own server.













        </p></card><card id="16" title="16">
        <p align="center">
        </p></card></wml>
        but when i save that page it says unexpected string and something like that

        Comment


          #5
          Sory MAte i dont see that example fin now you have a php page bro dont but ther you dont have the cod of PHP


          just beagin tha index so

          <?php

          header("Content-type: text/vnd.wap.wml");
          header("Cache-Control: no-store, no-cache, must-revalidate");
          echo("<?xml version=\"1.0\"?>");
          echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

          ?>



          the Caracter of Begin <?php and end ?> the

          Comment


            #6
            That help you Mate ?

            Comment


              #7
              <?
              header("Content-type: text/html; charset=ISO-8859-1");
              echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
              echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
              echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
              ?>
              <html>

              head>
              <meta http-equiv="Content-Language" content="en-us">
              <style>

              A:hover{color: #007751; text-decoration: underline;}

              </style>
              <title>
              <?
              include &#39;/home/adamb10/public_html/UltraBlog/Sources/mysqlconnect.php&#39;;
              $result = mysql_query(&#39;SELECT title FROM Userdata&#39;) or die("Error: ".mysql_error());
              while ($row = mysql_fetch_assoc($result))
              {
              echo $row[&#39;title&#39;];
              }
              ?>
              </table>


              </body>

              </html>

              i hope you anderstend something from this cod.i cant post big cod

              Comment

              Working...
              X