By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,215 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,215 IT Pros & Developers. It's quick & easy.

How to harness information of the web

P: 15
Hello Everyone,

I am not sure if I posting this to the right forum or not. So, I apologize before hand if this is not the forum for posting this question.

I want a script that would run weather in Windows or Linux that will gather the information of a website and save it in a file (maybe to a .xls file). I want to use a program because I want to search more than 1000s of pages. However, the good thing is that each page is identical to the other. For example, the program browses: http://www.xxxxxx.yyy/1.html and grabs a variable's content from inside and saves it to a file. Next it goes to: http://www.xxxxxx.yyy/2.html and does the same thing.

Can php do this?

Oct 21 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 6,050
PHP can get the contents of a file using file_get_contents() and then you might use a regex to extract the information. So, yes, it is possible.
Oct 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.