Jump to content

refined

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

refined's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I never was a math major, so bare with me Example scenario: Date - Number 7/15/2010 - 100 7/16/2010 - 70 7/17/2010 - 60 7/18/2010 - 55 7/19/2010 - 52 7/20/2010 - ?? 7/21/2010 - ?? etc I am trying to estimate what the Number value could be for an input date in the future. Can somebody shed some light?
  2. Alright, so basically, I need a function that takes a cURL output from a page and grabs links from inside of the page. The links are all from rapidshare.com, and are generally in this typical format: http://rapidshare.com/files/3459349/etcetcetc.r00 http://rapidshare.com/files/81027576/blahblahblah234.rar http://www.rapidshare.com/files/81027576/etcetcetc.rar http://www.rapidshare.com/files/81027576/etdasflkjas.r00 These are essentially how the links work. I know how to code everything except for the regex that grabs the link for the page. I've tried several things, including the classic: function returnSubstrings($text, $openingMarker, $closingMarker) { $openingMarkerLength = strlen($openingMarker); $closingMarkerLength = strlen($closingMarker); $result = array(); $position = 0; while (($position = strpos($text, $openingMarker, $position)) !== false) { $position += $openingMarkerLength; if (($closingMarkerPosition = strpos($text, $closingMarker, $position)) !== false) { $result[] = substr($text, $position, $closingMarkerPosition - $position); $position = $closingMarkerPosition + $closingMarkerLength; } } return $result; } $cURLoutput = str_replace("www.rapidshare.com", "rapidshare.com", $cURLoutput); $linkarray= returnSubstrings($cURLoutput, "http://rapidshare.com", ".rar"); $linkarray2= returnSubstrings($cURLoutput, "http://rapidshare.com", ".[0-9]"); Obviously, I left the cURL stuff out.. This is clearly not the most effective way to do this.. what is the best method? Yeah, it's very ugly
  3. I have an image, greyscale. I want to convert everything that is *NOT* white to black. How can I do this? Is there such a function that exists to convert a greyscale image to 100% black or 100% white ?
  4. Hello, Could anyone point me to any articles / snippets of code that show you how to integrate a web shopping cart or a buy it now / etc into PHP for Alertpay, Uniclear, or E-bullion? I have successfully added e-gold, and the Alertpay/Uniclear websites provide no open information regarding integration / automation. Thanks! -Ryan
×
×
  • 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.