| Re: FreeContent Webdigest v.3.0 Final |
| by ChadK on 2004/9/2 19:03:48 Any way to get the script to grab ALL of the links it finds instead of a random sample? |
| Re: FreeContent Webdigest v.3.0 Final |
| by ChadK on 2004/9/2 16:49:20 Is there a way to use the regex to filter lines that you WANT included? on a page there are several entries like this: le="color: #000000"><?php <!-- 8291 misty mistyann5252@aol.com 08/10/04 --> <b>Ad No.: </b>8291 - <b>Subject: </b>trade Catalina macaw for sulphur Crested - <b>Posted on: </b>08/10/04<br> <b>Reply to: </b>misty at <a href="mailto: xxx">xxxx</a><br> Catalina Macaw 12 months old ever sweet would like to trade for a Sulphur Crested cockatoo or a unbrella cockatoo or a african gray or sale for 1000.00 with cage <p> <a href="http://"></a><p><font size="-3">Your internet ID - | August 10, 2004 at 12:53:47 | Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1)</font> <p><hr><p> <!-- end 8291 --> I want to grab everything from start to finish... but all I get is a bunch of useless links because these ads are text and don't contain links. |
| Re: FreeContent Webdigest v.3.0 Final |
| by zer0fill on 2004/5/24 22:14:54 When i try to do a regex, it seems to get stripped out. (?:\/\/) becomes (?://) when i try to edit the digest. I'm trying to strip out slashdot.org 's funky <a> links le="color: #000000"><?php <A HREF="//science.slashdot.org/article.pl?sid=04/05/24/211220&mode=thread&tid=133&tid=134&tid=186">Remote New Zealand Volcano Sees Dinosaur Alert?</A> Notice how HREF has two // before the domain name.FreeContent is converting it to le="color: #000000"><?php http://slashdot.org//science.slashdot.org/article.pl?sid=04/05/24/211220&mode=thread&tid=133&tid=134&tid=186 Notice how it puts slashdot's domain then the // |
| Re: FreeContent Webdigest v.3.0 Final |
| by kisuk on 2004/5/2 20:20:50 It took me ages to get that darn thing cURL with PHP/APACHE/WINDOWS working but with some help from a text-file I stumble upon I got it finally going. Here is how it goes: ========================================================== 1. Only install PHP with the zip'd binaries. Don't use the installer. I recommend deleting your current PHP installation and reinstalling with the binaries. Downloading the latest PHP has the added benefit of ensuring its compatible with the version of cURL you'll download later. (I installed to D:\apps\php and will use that path for the rest of this example) 2. Edit your php.ini file: - set extension_dir to d:\apps\php\extensions - set register_globals to On - set session.save_path to d:\apps\php\temp (you need to create that directory first) 3. Copy php4ts.dll to your Apache bin folder 4. Copy libeay32.dll and ssleay32.dll to c:\WINNT 5. Download cURL for Windows at: http://curl.haxx.se/download.html. I chose the Win32 - Generic by Jörn Hartroth. I recommend getting the SSL version in case you ever need SSL. I unzipped cURL to d:\apps\curl and will use that path for the rest of this example 6. [SSL INSTALL ONLY] Download OpenSSL for Windows from http://curl.haxx.se/download.html. (Its near the bottom of the page). Extract libssl32.dll to d:\apps\curl 7. [Windows XP Install Only] Check to see if you have the following file: c:\windows\system32\msvcr70.dll. If not, search for it in Google and download it to system32. You may get error messages without it. 8. Uncomment the curl line in your php.ini file to enable curl: extension=php_curl.dll 9. Finally edit your Apache httpd.conf file to enable php: - Add Line: LoadModule php4_module d:/apps/php/sapi/php4apache2.dll - Add Line: AddType application/x-httpd-php .php ========================================================== source: http://www.tonyspencer.com/journal/00000037.htm (little modified) Thank you Tony Spencer for helping me out and thank you wjue for this excellent module and also for x-agenda! With best regards, Kisuk |
| Re: FreeContent Webdigest v.3.0 Final |
| by ukandrewf on 2004/4/25 13:43:51 there's two things holding me back from rolling this module out. 1) The digest is great but I'd like to be able to specify in the digest block which news will be shown. So for exampl,e while I may want a,b,c,d,e as sources in the digest front page, I might only want news items to show from a,e on the front page in rotation. 2) I'd need to get rid of the developer code in the news scroller and digest blocks - I'm happy to make a payment to do this. |