Re: PHP to grab the html from a URL and insert into MySQL
Nick,
ISBN Number? Text from Book? Not sure what you mean here.
The operating system is Windows NT 4.0 (soon to be upgrading). The OS shouldn't have any impact on the functionality will it?
I have been playing with your code and it works for .HTML, .CFM, .ASP, .PHP .TXT pages (am i missing any?). Which is great. However it does not seem to work for local documents on our site (http://www.mysite.com/index.asp). I get a couple of errors that look like this when I try local documents:
1. Warning: fopen() [function.fopen]: php_hostconnect: connect failed in f:\Inetpub\wwwroot\urlgrabber.php on line 59
2. Warning: fopen(http://www.mysite/test.asp) [function.fopen]: failed to create stream: Bad file descriptor in f:\Inetpub\wwwroot\urlgrabber.php on line 59
3. Notice: Undefined variable: okread in f:\Inetpub\wwwroot\urlgrabber.php on line 65
Any ideas?
I think this is on the right track and could be a possible solution if I could figure out how to strip out HTML tags (so I only get the text) and to solve the .PDF and .DOC problems. I'll continue to play with it.
Keith
Subject
Views
Written By
Posted
6720
July 22, 2004 03:56PM
3927
July 23, 2004 02:58PM
4270
July 23, 2004 03:27PM
3394
July 24, 2004 02:49AM
6670
July 24, 2004 05:00AM
16628
July 24, 2004 05:56AM
5165
July 26, 2004 09:56AM
3946
July 26, 2004 10:17AM
3595
July 26, 2004 10:37AM
Re: PHP to grab the html from a URL and insert into MySQL
4804
July 26, 2004 10:49AM
4332
July 26, 2004 11:55AM
3547
July 26, 2004 03:48PM
3546
July 26, 2004 04:08PM
3374
July 27, 2004 09:47AM
3949
July 28, 2004 10:13AM
3701
September 08, 2004 05:46AM
4157
September 08, 2004 05:46AM
3397
November 23, 2004 02:40AM
4275
November 25, 2004 04:30AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.