Programming Archive

Mini Fetch Code

Mini fetch Code < ? $theLocation=”http://www.wired.com/”; preg_match(“/^(https?://)?([^/]*)(.*)/i”, “$theLocation”, $matches); $theDomain = “http://” . $matches[2]; $page = $matches[3]; $fd = fopen($theDomain.$page, “rb”); $value = “”; while(!feof($fd)){ $value .= fread($fd, 4096); } fclose($fd); $start = strpos($value, ““); $finish = strpos($value, ““); $length = $finish – $start; $value = substr($value, $start, $length); $FinalOutput = preg_replace(“/(href=”?)(/[^"/]+)/”, “1″ . $theDomain [...]

Now then

Hm, I’ve got my own section. Pff… Well I’m the PHP programmer at DaveN Industries. I don’t think this section will last long, I’m sure the novelty will wear off soon. What am I up to at the moment? Well I’m writing a new object-orientated shopping cart blah for use in house. This will let [...]

  1. 1
  2. 2
  3. 3
  4. 4
Interested in working with us?

We're not big on cold calling or the 'hard' sell so if you want to work with us then simply get in touch, we'd love to hear from you...

The Bronco Family
Work With Us