Easy modfication Job U$S 15

Discussion in 'Programming' started by caspermz, Jul 6, 2009.

  1. #1
    Hello i have a mp3 search engine wich i want to make a modification i think is easy.

    this is my actual code,

    <?php
    
    if ( !function_exists('file_put_contents') && !defined('FILE_APPEND') )
    {
    	function file_put_contents($n, $d, $flag = false)
    	{
    		$mode = ($flag == FILE_APPEND || strtoupper($flag) == 'FILE_APPEND') ? 'a' : 'w';
    		$f = @fopen($n, $mode);
    
    		if ($f === false)
    		{
    			return 0;
    		}
    		else
    		{
    			if (is_array($d)) $d = implode($d);
    			$bytes_written = fwrite($f, $d);
    			fclose($f);
    			return $bytes_written;
    		}
    	}
    }
    
    $fpp = "the-includes/search.txt";
    $searchlog = "[keywords]:".urldecode(stripslashes(strip_tags($_GET[search])))."\n";
    file_put_contents($fpp, $searchlog, FILE_APPEND);
    ?>
    PHP:
    what this do is to write on a .txt file each time that someone search for a song what he has searched for.

    what i want is that insted of adding this to a .txt file add it to a db so i can get like the most searched and that for example if a song is search many times it will be first on the ranking .

    I will pay 15 dolars by alert pay.
     
    caspermz, Jul 6, 2009 IP
  2. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    easy task. have you found someone to help on it?
     
    chmdznr, Jul 6, 2009 IP
  3. caspermz

    caspermz Active Member

    Messages:
    152
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    no can you do it?
     
    caspermz, Jul 6, 2009 IP
  4. GreenWithEnvy

    GreenWithEnvy Active Member

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    I can do it for you easily - email me @ if you still need someone. I will respond right away. Same email for MSN and GTalk
     
    GreenWithEnvy, Jul 6, 2009 IP
  5. caspermz

    caspermz Active Member

    Messages:
    152
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    job done thanks
     
    caspermz, Jul 6, 2009 IP