Page 1 of 1

Get the source code of a webpage WITHOUT accesing it

Posted: Thu Jun 10, 2010 6:15 pm
by J0kerz
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?

Re: Get the source code of a webpage WITHOUT accesing it

Posted: Thu Jun 10, 2010 6:38 pm
by Benjamin
1. What you are wanting to do is not possible.
2. I have to lock this, because it violates the TOS of another website, which is against our forum rules.

http://www.autoitscript.com/autoit3/doc ... Source.htm

Code: Select all

_INetGetSource

Gets the source from an URL without writing a temp file.
:arrow: Locked