Jump to content

newb

Members
  • Posts

    454
  • Joined

  • Last visited

Everything posted by newb

  1. is it possible for php script to download a torrent file like a bittorrent client would?
  2. newb

    variable in regex

    when i test it without a variable the expression works fine... $type is set to = 'movie' when i put 'movie' instead of type, it works, but thats not what im trying to fix..
  3. can someone tell me whats wrong with this code: if (preg_match('|movie <a href="/encyclopedia/(.*?)">(.*) \(('.$type.')\)</a><br />$|Ui',$html,$result)) { its not working =// the variable isnt being detected,
  4. already beat you to it...tried it a while ago..it doesnt really work well as it has to be "taught" in order to work and can only convert a single character at a time. and i have a dynamic image thats always changing so thats pretty useless.
  5. yeah i already did a similar search -- i know what its called, my question is how / if it can be done in php.
  6. i need to find how to get the text on an image and converted to characters using php. how can this be done?
  7. nvmd, figured it out. its done with some curl functions, if anyone is interested in the script let me know, thanks.
  8. if its not possible, then how is this site http://www.thatswhatshewatched.com/cap.php?d=YOJMJ95N pulling the captcha from http://www.megaupload.com/?d=YOJMJ95N ? clearly its not cracking the captcha, but just transferring what's outputted from one page to the other. looks like php is capable of doing it to me, so my question is how? thats all im trying to figure out.
  9. i dont need any random captcha, i need the captcha that belongs to the MU download cause im trying to download from the MU website from my own. have a look at the script to see how it works by grabbing the source straight from the MU id.
  10. i need a script similar to this: http://www.thatswhatshewatched.com/cap.php?d=YOJMJ95N trying to get MU's captcha and use it on my own website. anyone know how this is done or the level of difficulty this takes in php? EDIT: looks like it somehow grabs captchacode, megavar input fields and the captcha image frm the megaupload page. didnt know this was possible in php?
  11. $file = readdir("/public_html/"); $date = date("F d Y H:i:s.",filemtime("$file"));
  12. im trying to sort this array desc by the date but its not working for some reason. doesnt sort at all. here is this the code: $new_array = array( file => $file, date => $date ); krsort( $new_array['date'] ); echo $new_array['date'];
  13. ok im using this code: $dir = "/var/www/"; $count = 0; if ($handle = opendir("$dir")) { while (($file = readdir($handle)) !== false) { $date = date("F d Y H:i:s.",filemtime("$dir/$file")); $file = str_replace('www.domain.com', '', $file); if (preg_match("/.domain.com/i",$file)) { $file = substr($file, 4); $count = $count + 1; $files = array(); $files[0] = $file; $files[1] = $date; usort($files, function ($a, $b) { return $a[1] > $b[1]; }); echo "$count. <a href='http://$file'>$files[0]</a> - $files[1]<br />"; } } closedir($handle); echo "<br /><br />$count"; } but it doesnt sort the results by the date, just flips the date inplace of where the domain.com links were at....
  14. when i add print_r($files); or echo $files it outputs Array ()
  15. just tried this function and it doesnt output anything. not sure why..?
  16. ah thanks again daniel, sorry about editing last thread also.
  17. hi, how can i put these results into an array and sort by the $date variable? $dir = "/home/public_html"; $count = 0; if ($handle = opendir("$dir")) { while (($file = readdir($handle)) !== false) { $date = date("F d Y H:i:s.",filemtime("$dir/$file")); $file = str_replace('www.domain.com', '', $file); if (preg_match("/.domain.com/i",$file)) { $file = substr($file, 4); $count = $count + 1; echo "$count. <a href='http://$file'>$file</a> - $date<br />"; } } closedir($handle); echo "<br /><br />$count"; }
×
×
  • 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.