PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-20-2003, 10:14 AM   #1
bordsenius
Green Mole
 
Join Date: Dec 2003
Location: norway
Posts: 2
Question Entire page is stripepd due to over-efficient script-stripping

Hi there. My first post.
I have played around with phpdig, and it looks very good.

But a snag or two har emerged, the most serious one is that all pages on my website have javascript at both the start and the end of every page.

And by the looks of it, the phpdigCleanHtml-function will strip away everything from the beginning to the end of all my pages.

The function should probaly be modified to remove all scripts , not everythig between the frist script start end the last script ending.

A lot of webpages have counters that are javascript-based at the end of every page, so this is an event that will happen quite frequently.

bordsenius
bordsenius is offline   Reply With Quote
Old 12-20-2003, 10:20 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. In the config file change define('CHUNK_SIZE',2048); to something like define('CHUNK_SIZE',200); for such pages. A lower chunk size breaks the page into smaller chunks that are fed to the phpdigCleanHtml function for tag removal.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem indexing site due to backslash F.Keniki Troubleshooting 1 12-26-2006 07:34 AM
New To Script glengall1 Feedback & News 1 09-08-2006 09:11 PM
Search through an entire word - especially for german textes janek Mod Submissions 0 12-20-2005 08:30 AM
Bug due to cron Edomondo How-to Forum 0 11-30-2005 12:38 AM
spider entire site summitmn Troubleshooting 1 05-03-2004 04:30 PM


All times are GMT -8. The time now is 08:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.