I'm running a simple CentOS 5.5 server with PHP 5.2.10. I'm trying to use PHP Simple HTML Dom parser but I get a 500 Server Error. Here is the script:
<?php
include_once('simple_html_dom.php');
$html = file_get_html('http://www.google.com/');
As you can see, I'm not even doing anything with the parser yet except trying to open a url. And that file_get_html
is resulting in a 500 Server Error.
I don't see any errors showing up in the httpd error log. So I'm not sure where to look to figure out the problem. The only PHP requirements for Simple HTML Dom parser seem to be PHP 5+ (check) and php allow_url_fopen = On
(check).