NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hey there.
I'm creating a script which scans the page of a given URL (like a web crawler).
Now, for some reason, I'm getting the error: Class 'simple_html_dom' not found in /class/class.shorten.php on line 50.
Now, line 50 is as follows: "{".
Yep. That's literally all that's on line 50.
I've scanned the entire file and I'm not even creating a new simple_html_dom anywhere... I'm not even using anything containing that class.
If anyone can tell me what on earth is going on, I would be greatly appreciative.
Here's a snippet of my code, 9 lines from line 50.
I'm creating a script which scans the page of a given URL (like a web crawler).
Now, for some reason, I'm getting the error: Class 'simple_html_dom' not found in /class/class.shorten.php on line 50.
Now, line 50 is as follows: "{".
Yep. That's literally all that's on line 50.
I've scanned the entire file and I'm not even creating a new simple_html_dom anywhere... I'm not even using anything containing that class.
If anyone can tell me what on earth is going on, I would be greatly appreciative.
Here's a snippet of my code, 9 lines from line 50.
PHP:
if(strpos($url, "http://") !== false)
{
$url = explode("//", $url);
$url = $url[1];
}
$url = "http://" . $url;
$file = file_get_contents($url);
if(preg_match("/<title>(.+)<\/title>/i",$file,$result))
{
$title = $result[1];
}
else
{
$title = "No title.";
}
$short_name = $this->randomShort();
if($url = $this->con->real_escape_string(strip_tags(htmlspecialchars($url))))
{
$q = "INSERT INTO shortened (short_name, full_url, owner) VALUES (?, ?, ?)";