CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Download Webpage content to txt (http://www.codingforums.com/showthread.php?t=286842)

Tsokid 01-31-2013 09:48 PM

Download Webpage content to txt
 
Hey guys,
I am totally lost here.

Can anyone help me with a php code.
I wanna download a webpage content to a txt file by entering the url.
Is that possible?

Thanks in advance for any help

felgall 01-31-2013 09:52 PM

It can't be done with JavaScript and I don't think it can be done using a web browser.

You'd need a separate program that can read web pages and convert them to text that runs outside of a browser. I don't know if such a program exists - probably not given the copyright issues associated with making it easier to steal text from web pages.

Airblader 01-31-2013 09:56 PM

What for?

Tsokid 01-31-2013 10:04 PM

I want to count specific text strings in a web pages. So i thought it would be easier to download, search, count and deleted file would be easier that count online.
If second solution is easier i wouldn't know

Old Pedant 01-31-2013 10:27 PM

Ummm...Felgall, look what he wrote:
Can anyone help me with a php code.

He doesn't want a JS solution. He just posted in the wrong forum.


All times are GMT +1. The time now is 01:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.