AJAX / PHP Text Grabber
Posted: Mon Aug 31, 2009 6:15 pm
Alright so I want to use AJAX to run a back end script off the server to grab some text off of another website, then echo that text to the original page.
For example:
Index.php: Starts the AJAX command asking for script.php.
script.php: Opens up (on the server) the webpage (e.g. index2.php) sees the text sends the text back to index.php
Index.php: Then getting the response echos that text.
Possible?
Am I looking at it the wrong way? Should I use a different coding?
EDIT: Take note that index2.php would be on a server that is not controlled by I. i.e. Google.com
For example:
Index.php: Starts the AJAX command asking for script.php.
script.php: Opens up (on the server) the webpage (e.g. index2.php) sees the text sends the text back to index.php
Index.php: Then getting the response echos that text.
Possible?
Am I looking at it the wrong way? Should I use a different coding?
EDIT: Take note that index2.php would be on a server that is not controlled by I. i.e. Google.com