Script Help Please

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

6 replies · 566 views · started 19 years ago · 1 min read

3 participants
hugo5 Newbie · 2 posts #1

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

WhiteWarrior Principal · 1,419 posts #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

hmm, how have you put your script?..

hugo5 Newbie · 2 posts #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='1.0' encoding='utf-8'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'><wml> <card id="c1" title="Hugo5 © 2007">

[+]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.

External image (may be gone)

</card><card id="16" title="16">

</card></wml> but when i save that page it says unexpected string and something like that

Lordx Senior · 303 posts #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

Lordx Senior · 303 posts #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 '/home/adamb10/public_html/UltraBlog/Sources/mysqlconnect.php'; $result = mysql_query('SELECT title FROM Userdata') or die("Error: ".mysql_error()); while ($row = mysql_fetch_assoc($result)) { echo $row['title']; } ?> </table> </body> </html>

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close