
Untitled
By: a guest on
May 2nd, 2012 | syntax:
None | size: 0.66 KB | hits: 17 | expires: Never
<?php
$get = new get();
while (true) {
$get->getName();
}
class get {
public function __construct() {
usleep(0);
$this->getName();
}
public function getName() {
$url = file_get_contents("/home/connor/index.html?pm=full");
$name = explode('<a href="?"', $url);
foreach($name as $url) {
$n = $this->stribet($url, 'pm=', '">');
echo($n."\n");
}
}
public function stribet($inputstr, $deliLeft, $deliRight) {
usleep(0);
$posLeft = stripos($inputstr, $deliLeft) + strlen($deliLeft);
$posRight = stripos($inputstr, $deliRight, $posLeft);
return substr($inputstr, $posLeft, $posRight - $posLeft);
}
}