Get the source code of a webpage WITHOUT accesing it
Posted: Thu Jun 10, 2010 6:15 pm
Hey there,
I know how to get the source code of a webpage using CURL or file_get_contents but both of these method actually browse to the page.
I am currently developping a script using the Yahoo Site Explorer API and Yahoo is very strick regarding automatic query. Your IP get banned pretty fast if you acces to many times a page in a short amount of time.
Before moving to PHP, my apps was desktop based (In Autoit). I was using a function called _INetGetSource. This function was able to get the source code of page easily without really accessing it so I never had problem with Yahoo restriction and stuff.
I was wondering if such functions exist in PHP?
I know how to get the source code of a webpage using CURL or file_get_contents but both of these method actually browse to the page.
I am currently developping a script using the Yahoo Site Explorer API and Yahoo is very strick regarding automatic query. Your IP get banned pretty fast if you acces to many times a page in a short amount of time.
Before moving to PHP, my apps was desktop based (In Autoit). I was using a function called _INetGetSource. This function was able to get the source code of page easily without really accessing it so I never had problem with Yahoo restriction and stuff.
I was wondering if such functions exist in PHP?