php - How do you install simplehtmldom in ubuntu -
I am trying to write a screen scrapper in php. I know how to make regular expressions. However, I have found a library that seems to remove the need to use regular expressions while screen scrapping. This is called SimpleMaldom.
Although I do not even know how to install it, I downloaded it from the source phone but did not explain how to install it manually.
I am using Ubuntu 9.04.
Any help would be appreciated.
Thank you, Glenn.
For PHP, you will usually package PHP code elsewhere with your code. Requires to be included in PHP.
Then enter simple_html_dom.php elsewhere in your application directory:
is required ('simple_html_dom.php');
Installing the file in the OS does not really get anywhere because it needs to be accessible on your server. However, you can place the PHP file anywhere on your application in your web root and then in the context of the requirement of this file.
Comments
Post a Comment