Results 1 to 7 of 7
Hybrid View
-
8th Feb 2012, 05:56 PM #1BannedPHP Code:
<?php
$url = 'https://rapidshare.com/files/322058444511/test.zip';
$regex = '@^https?://(?:[\w\d]+\.)*rapidshare\.\w+/files/(\d+)/([^&?#/]+?)(?:$|[&?#/])@i';
preg_match($regex, $url, $matches);
/* Array (
[0] => https://rapidshare.com/files/322058444511/test.zip
[1] => 322058444511
[2] => test.zip )
*/
$file_url = $matches[0]; $file_id = $matches[1]; $file_name = $matches[2]; echo $file_url . "\n" . $file_id . "\n" . $file_name . "\n";devNULL Reviewed by devNULL on . Extract links Hi, I'm writing 1 script that take backup of my rapidshare links.. But I have 1 problem: I can't extract from posts ID Links and Filename. I use that: <?php $url = file_get_contents("http://www.domain.com"); $url = strip_tags( $url ); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
detect updates on a webpage and extract the file hoster links.
By Mitt281 in forum Web Application/Script SupportReplies: 0Last Post: 6th Nov 2012, 09:26 PM -
extract all links from a ftp page
By Griz in forum Technical Help Desk SupportReplies: 6Last Post: 25th Sep 2012, 04:21 PM -
how extract links of moevideo?
By best87 in forum File Host DiscussionReplies: 1Last Post: 8th May 2012, 06:21 AM -
extract multiple http links
By KML in forum Webmaster DiscussionReplies: 0Last Post: 27th Dec 2011, 01:33 AM -
tar.gz extract
By praveer in forum Technical Help Desk SupportReplies: 7Last Post: 30th Jul 2011, 05:11 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...