Hi all. I know how to limit the amount of lines per page when calling something from mysql but what about a script like this:
How would you make this display 20 lines per page?
Code:
<?
//SOURCE CODE VIEWER//
header("Content-Type: text/vnd.wap.wml");
echo '<?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>
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card title="Source Code Viewer">
<do type="prev" label="Back"><prev/></do>';
print "
";
if ($url == "") {
echo "ENTER URL:
<input type=\"text\" name=\"url\" maxlength=\"999\" emptyok=\"false\" value=\"http://\"/>
<anchor>[GO]<go href=\"$PHP_SELF?url=$url\" method=\"post\"><postfield name=\"url\" value=\"$(url)\"/></go></anchor>";
}
if ($url == "$url") {
$udata=@file_get_contents("$url");
$udata = str_replace("$","$$",$udata);
$udata = str_replace("&","&",$udata);
$udata = str_replace("'","'",$udata);
$udata = str_replace("<","<",$udata);
$udata = str_replace(">",">",$udata);
$udata = str_replace("\"",""",$udata);
print "$udata
";
}
print "
<a href=\"http://LandOfWap.net\">(c) LandOfwap.net</a></p>
</card>
</wml>";
?>
Comment