I have a simple PHP script that needs to parse the content of another webpage. What is the easiest way to put the HTML code into a PHP variable?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your php script:
If you need more advanced functionality, like simulating Headers/Cookies, look into –
cURL.