Get the source code of a webpage WITHOUT accesing it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
User avatar
J0kerz
Forum Commoner
Posts: 37
Joined: Fri May 29, 2009 2:51 pm

Get the source code of a webpage WITHOUT accesing it

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

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

Post 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
Locked