Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am using iframe to display other's webpage in my webpage in that other's page user give's his data and submit it on other's webpage, after that it(other's page) gives some result, How can i get the data from the other's page, i am using PHP. please help...
Posted

1 solution

This is called Web scraping: http://en.wikipedia.org/wiki/Web_scraping[^].

See, for example, this basic tutorial: http://www.oooff.com/php-scripts/basic-php-scrape-tutorial/basic-php-scraping.php[^].

It's based on sending a HTTP request, getting content returned in HTTP response and perhaps parsing it. For more advanced requests, so you could, for example, submit a form, authenticate, etc., please see:
http://www.php.net/manual/en/function.http-request.php[^],
http://php.net/manual/en/function.http-post-data.php[^].

See other methods in the tree on left, under "HTTP methods".

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900