Jump to content

Search the Community

Showing results for tags 'phpgrabber'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hellow guys.I have created a script.but it got some errors.Any here with good.php knowledge please help.You see my script is a auto uploader/grabber.Everything working fine except file uploading. You see the site from which I grab content and.files creates a custom link then they redirect to real file.Like http://m.sumirbd.mobi/files/download/id/70370 sends to dl1.sumirbd.mobi/files/gsyn/dload/the_name_of_file.mp3 So first I had to get the real link.But I don't how.So far I have used bellow codes and my site link is http://sumirbd.perfectlifehacker.com <?php include 'config.php'; $id=$_GET['id']; if(!$id){ echo '<br/><h2>Error: wrong path entered.</h2><br/>'; die(); } $h = get_headers('http://m.sumirbd.mobi/files/download/id/'.$id.'',1); $dl = str_replace(' ','%20',$h['Location']); // file name n replace $sname = basename($dl); $sname = str_replace('sumirbd.mobi',''. $site.'',$sname); $sname = str_replace('%20','_',$sname); // dir make $dir = "download"; $dir2 = "$dir/$id"; if(!is_dir($dir)){ mkdir($dir); chmod($dir,0777); } if(!is_dir($dir2)){ mkdir($dir2); chmod($dir2,0777); } // save n copy $save = ''.$dir.'/'.$id.'/'.$sname.''; $file_extension=pathinfo($save, PATHINFO_EXTENS ION); if(!file_exists($save)) { if($file_extension=="mp3"){ if(copy($dl,$save)){ if ($voice == 'ON') { file_put_contents(''.$save.'', file_get_contents(''.$save.''). file_get_conten ts('voicetag.mp3')); } @include 'tag.php'; } } else { copy($dl,$save); } header("Location: /$save"); } else { header("Location: /$save"); }?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.