DAT extension file support on LINUX

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

    DAT extension file support on LINUX

    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!
    Attached Files
    JUST JOIN FOR FUN !
    http://wapmaster2.com

    #2
    You want to read it or make it work ??

    Added after 6 minutes:

    Code:
    $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."";
    Last edited by subzero; 05.09.10, 08:40.
    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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


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

      Code:
      <?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 !
      http://wapmaster2.com

      Comment


        #4
        PHP Code:
        $content file_get_contents('dile.dat');
        echo 
        $content
        Advertise your mobile site for FREE with AdTwirl

        Comment


          #5
          Originally posted by GumSlone View Post
          PHP Code:
          $content file_get_contents('dile.dat');
          echo 
          $content
          woooo its readable thanks bro you are GR8!
          JUST JOIN FOR FUN !
          http://wapmaster2.com

          Comment

          Working...
          X