Plz Help Me

Started on the old forum in July 2006 · view the original in the archive · old links redirect here

27 replies · 1,683 views · started 20 years ago · 1 min read

2 participants
matthew #1

plz can someone add script timer and hits to my index plz i dont know how

<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

?>
<wml>
<card id="login" title="cell-zone">
<p align="center">

<?php

echo "<img src=\"/logo.jpg\" alt=\"logo\"/>
";

echo "<a href=\"http://forum.izypage.net/\"><img src=\"http://mysite.com/forum.gif\" alt=\"\"/>Forums</a>
";
echo "<a href=\"http://mysite.com/wapchat\"><img src=\"http://mysite.com/chat.gif\" alt=\"\"/>Live Chat</a>
";
echo "<a href=\"http://mysite.com/adult\"><img src=\"http://mysite.com/adult.gif\" alt=\"\"/>Adult</a>
";
echo "<a href=\"http://myste.com/downloads\"><img src=\"http://mysite.com/download.gif\" alt=\"\"/>Downloads</a>
";
echo "<a href=\"http://mysite.com/toplist\"><img src=\"http://xcile.com/toplist.gif\" alt=\"\"/>Toplist</a>
";

echo "
[size="1"](c)cell-zone[/size]
";
echo "
";
?>
</p>
</card>
</wml>

thaks alot

wapkralj Developer · 237 posts #2
<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;
?>
<wml>
<card id="login" title="cell-zone">
<p align="center">

<?php

echo "<img src=\"/logo.jpg\" alt=\"logo\"/>
";

echo "<a href=\"http://forum.izypage.net/\"><img src=\"http://mysite.com/forum.gif\" alt=\"\"/>Forums</a>
";
echo "<a href=\"http://mysite.com/wapchat\"><img src=\"http://mysite.com/chat.gif\" alt=\"\"/>Live Chat</a>
";
echo "<a href=\"http://mysite.com/adult\"><img src=\"http://mysite.com/adult.gif\" alt=\"\"/>Adult</a>
";
echo "<a href=\"http://myste.com/downloads\"><img src=\"http://mysite.com/download.gif\" alt=\"\"/>Downloads</a>
";
echo "<a href=\"http://mysite.com/toplist\"><img src=\"http://xcile.com/toplist.gif\" alt=\"\"/>Toplist</a>
";

$szamlalo_File = "counter/".date("Ymd").".txt"; 
 
if (file_exists($szamlalo_File)) { 
$szamlalo_fp = fopen($szamlalo_File,"r"); 
$szamlalo_num = fread($szamlalo_fp, filesize($szamlalo_File)); 
fclose($szamlalo_fp); 
} 
 
$szamlalo_num=$szamlalo_num+1; 
$szamlalo_fp = fopen($szamlalo_File,"w"); 
fwrite($szamlalo_fp, $szamlalo_num, 10); 
fclose($szamlalo_fp); 
 
 
$counter_array = file("counter.dat");
$all = $counter_array[0]+1;
$fp = @fopen("counter.dat","wb");
@fputs($fp,$all);
@fclose($fp); 
echo "
[size="1"][b]Today hits: [u]$szamlalo_num[/u] [/b]
[b]Total hits: [u]$all[/u][/b][/size]";
echo "
[size="1"](c)cell-zone[/size]
";
 $time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("[size="1"]Page took %f seconds to load.[/size]", $totaltime);
?>
</p>
</card>
</wml>

create counter folder chmod 777,chmod 777 counter.dat also

matthew #3

thanks alot how do i add random msg

it dont work bro

wapkralj Developer · 237 posts #4

try now,i was modiyfing live,not testing, so fixed bugs,try now

naveen-PHP LEARNER #5

This random message program dosent require any storage. Just add $m['next number']="value" It will automatically set it. remember , dont erase $m[0] but u can edit any values.

<?
#########ADD MORE ZONE#############
$m[0]="hmm";
$m[1]="wow!";
$m[2]="11 and a half in physics out of 12??";
$m[3]="so...";
$m[4]="i am lamar";
#################################
$a=count($m);
$b=$a-1;
$j=rand(0,$b);
echo "$m[$j]";
echo"
";
$a=count($m);
echo $b;
?>

Its not as powerfull as other scripts. But its worth. External image (may be gone) External image (may be gone)

matthew #6

how dont know how

what counter file do make

matthew #7

how do i add more links

matthew #9

cheers it works at chatting.noads.de/index

how do i align them

how do i add text

abhisar #10

to add text echo "text";

to align text echo " "; echo "text to be aligned"; echo " ";

matthew #11

thanks alot

abhisar #12

ANYTHING ELSE.

abhisar #14

Well i am always to help you.

lamar-wap #16

me too bro i will help you too........

matthew #17

thanx. do u have a shoutbox script

matthew #18

does any one have a search script like the one at 2wap.net plz post it here any one or gumslone

visit chatting.noads.de

matthew #19

how do i use this code? <? #########ADD MORE ZONE############# $m[0]="hmm"; $m[1]="wow!"; $m[2]="11 and a half in physics out of 12??"; $m[3]="so..."; $m[4]="i am lamar"; ################################# $a=count($m); $b=$a-1; $j=rand(0,$b); echo "$m[$j]"; echo" "; $a=count($m); echo $b; ?>

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