I have a need to retrieve the contents of a specific remote web page. For example, I am using the php function:
$url='http://www.SomeWebPage.com';
$contents = file_get_contents($url);
$contents = htmlspecialchars($contents);
From here I would like to search for specific keywords inside the the variable $contents, which now contains the web page dump with html special characters. In this case, I really do not need to use the htmlspecialchars(), since I do not plan of pushing the page contents out to my website visitor. Therefore I am not using the function for the purpose of creating a proxy, which is against x10hosting rules anyway.
My question is, am I allowed to go out and grab the contents of a third party web page, search for keywords in the text, and execute some code depending on what keywords were found in $contents, using my x10 Free hosting account?
Thanks in advance for your answer.
$url='http://www.SomeWebPage.com';
$contents = file_get_contents($url);
$contents = htmlspecialchars($contents);
From here I would like to search for specific keywords inside the the variable $contents, which now contains the web page dump with html special characters. In this case, I really do not need to use the htmlspecialchars(), since I do not plan of pushing the page contents out to my website visitor. Therefore I am not using the function for the purpose of creating a proxy, which is against x10hosting rules anyway.
My question is, am I allowed to go out and grab the contents of a third party web page, search for keywords in the text, and execute some code depending on what keywords were found in $contents, using my x10 Free hosting account?
Thanks in advance for your answer.
Last edited: