Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-31-2013, 09:48 PM   PM User | #1
Tsokid
New to the CF scene

 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Tsokid is an unknown quantity at this point
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
Tsokid is offline   Reply With Quote
Old 01-31-2013, 09:52 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,448
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 01-31-2013, 09:56 PM   PM User | #3
Airblader
Regular Coder

 
Join Date: Jan 2013
Location: Germany
Posts: 353
Thanks: 3
Thanked 43 Times in 43 Posts
Airblader can only hope to improve
What for?
Airblader is offline   Reply With Quote
Old 01-31-2013, 10:04 PM   PM User | #4
Tsokid
New to the CF scene

 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Tsokid is an unknown quantity at this point
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
Tsokid is offline   Reply With Quote
Old 01-31-2013, 10:27 PM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,172
Thanks: 59
Thanked 3,994 Times in 3,963 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:36 PM.


Advertisement
Log in to turn off these ads.