DAT extension file support on LINUX

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

4 replies · 740 views · started 16 years ago · 1 min read

3 participants
wapmaster2 Developer · 114 posts #1

hi, welcome to code masters and serverman !

my server does not support DAT file [ .dat extension ] anybody know what should install ? need help

1 simple DAT file is attached Thanks!

🌹 JUST JOIN FOR FUN ! **[url]http://wapmaster2.com**

Attachments: dat.rar
subzero Super moderator Fellow · 3,954 posts #2

You want to read it or make it work ??

Added after 6 minutes:

$p = 5;
$xfile=file('online1.dat');
$countfile=count($xfile);

if($npage=="")$npage="1";
echo "Tests:".$countfile."\n";
$second=($p*$npage);
$first=($p*($npage-1));
$npages=(int) ceil($countfile/$p);
if ($npage<=$npagesAND$npage>1)$gline_rew="<a href=\"$PHP_SELF?npage=".($npage-1)."\">Prev</a>";
if ($npages > 1 AND $npage<$npages) $gline_next = "<a href=\"$PHP_SELF?npage=".($npage+1)."\">Next</a> ";
for ($i = $first; $i <=*$second-1; $i++)
  { 
$a=explode("?",$xfile[$i]);
$test = rtrim($a[0]);
echo "$test";
}
print "".$gline_rew."|".$gline_next.""; 

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

wapmaster2 Developer · 114 posts #3

no bro can not able to read that online1.dat file i have testing as your code below;

<?php

header("Cache-Control: no-cache, must-revalidate");	        // Prevent caching, HTTP/1.1
header("Pragma: no-cache");
//header('Content-type: application/vnd.wap.xhtml+xml'); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php

    echo "<head>";
    echo "<title>Testing......</title>";
    echo "</head>";
    echo "<body>";

$p = 5;
$xfile=file('online1.dat');
$countfile=count($xfile);

if($npage=="")$npage="1";
echo "Tests:".$countfile."\n";
$second=($p*$npage);
$first=($p*($npage-1));
$npages=(int) ceil($countfile/$p);
if ($npage<=$npagesAND$npage>1)$gline_rew="<a href=\"$PHP_SELF?npage=".($npage-1)."\">Prev</a>";
if ($npages > 1 AND $npage<$npages) $gline_next = "<a href=\"$PHP_SELF?npage=".($npage+1)."\">Next</a> ";
for ($i = $first; $i <=*$second-1; $i++)
  { 
$a=explode("?",$xfile[$i]);
$test = rtrim($a[0]);
echo "$test";
}
print "".$gline_rew."|".$gline_next."";

echo "</body>";
?>
</html>

🌹 JUST JOIN FOR FUN ! **[url]http://wapmaster2.com**

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