+ Reply to Thread
Results 1 to 4 of 4

Thread: PHP Coding For Points

  1. #1
    [TX]-Ghost is offline x10Hosting Member [TX]-Ghost is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    4

    PHP Coding For Points

    Not sure what I can use these points for but I will code php scripts for points just pm me with what you want.

  2. #2
    nahsorhseda's Avatar
    nahsorhseda is offline x10 Sophmore nahsorhseda is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    mumbai
    Posts
    116

    Re: PHP Coding For Points

    credits:60

    hey can you code me this script what it does is that it searches all files in the directory

    but what i want it to do is search files hosted at a different server and offcourse without usung ftp ,,coz ive hosted all my media files on a another host which allows media file hosting

    here IS what i want you to convert check if there some errors
    PHP Code:
    <?
    echo'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">';
    echo 
    "<html>";
    echo 
    "<head>
    <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
    </head>"
    ?>

    <?
    extract
    ($_REQUEST); 
    ?>
    <? 
    include("../css.php"); ?>
    <?
    echo "<title>nahsorhseda</title>";
    echo
    '<body bgcolor="#000000" text="#00FF00" link="#FFFFFF" vlink="#FF0000" alink="#FFFFFF">';
    echo 
    "<small>\n";

    function 
    search($target$directory){

       if(
    is_dir($directory)){
           
    $direc opendir($directory);
           while(
    false !== ($file readdir($direc))){

               if(
    $file !="." && $file != ".."){

                   if(
    is_file($directory."/".$file)){
                       if(
    preg_match("/$target/i"$file)){

    $size round(filesize($directory."/".$file)/1024,1);
    $rev strrev ($file);
    $exp explode ("."$rev);
    $true strrev ($exp[0]);
    $trueext strtolower ($true);
    if (
    $trueext=="zip" OR $trueext=="rar" OR $trueext=="gz" OR $trueext=="wav" OR $trueext=="bmp" OR $trueext=="mid" OR $trueext=="midi" OR $trueext=="sis" OR $trueext=="bmp" OR $trueext=="wbmp" OR $trueext=="mmf" OR $trueext=="png" OR $trueext=="jar" OR $trueext=="jad" OR $trueext=="exe" OR $trueext=="doc" OR $trueext=="mp3" OR $trueext=="mp4" OR $trueext=="3gp" OR $trueext=="avi" OR $trueext=="gif" OR $trueext=="jpg" OR $trueext=="jpeg" OR $trueext=="nth" OR $trueext=="thm" OR $trueext=="amr"){                                           

    echo 
    "<a href=\"$directory/$file\">$file ($size KB)</a><br/>";}
                                           }
                   }else if(
    is_dir($directory."/".$file)){
                       
    search($target,$directory."/".$file);

                   }

               }
           }
           
    closedir($direc);
       }

       return;
    }


    echo 
    "<b>Search Results: </b>$search<br/>---<br/>";
    search("$search""./");


    ?>
    <form method="POST" action="process.php">
      
      <p>search again:</p>
      
      <p><input type="text" name="q" size="20"></p>
      <p><input type="submit" value="Submit" name="B1"></p>
    </form>
    <? include("../menu.php"); ?>

    <a href="index2.php">wallpapers home</a><br/>
    <a href="http://nahsorhseda.wen9.com/Rock2.html">main home</a><br/>

    <img src='http://c.wen.ru/256908.wbmp?Nahsorhsed' alt='Создай сайт! Create site!'/><br/>
    </body>
    </html>
    glad to resolve problems in c++ n php

  3. #3
    KingOfTheEmblem is offline x10Hosting Member KingOfTheEmblem is an unknown quantity at this point
    Join Date
    Jun 2007
    Posts
    41

    Re: PHP Coding For Points

    How extensive is your knowledge of PHP?

  4. #4
    Tariqul Islam's Avatar
    Tariqul Islam is offline x10 Sophmore Tariqul Islam is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    Bangladesh
    Posts
    182

    Re: PHP Coding For Points

    I think that's not possible.



+ Reply to Thread

Similar Threads

  1. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 10:46 AM
  2. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 11:07 AM
  3. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-15-2008, 12:40 AM
  4. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 10:16 PM
  5. Images in PHP Coding?
    By TheJeffsta in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 05-19-2006, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers