PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Entire page is stripepd due to over-efficient script-stripping (http://www.phpdig.net/forum/showthread.php?t=313)

bordsenius 12-20-2003 10:14 AM

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

Charter 12-20-2003 10:20 AM

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.


All times are GMT -8. The time now is 07:27 PM.

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