PhpDig only with Mysql
I want to make Phpdig work only with Mysql because the folder text_content take much disk space on my server (100MB) :angry: , so I want to know if somebody have already made this ?????? :yes:
excuse me my english is not perfect ;) |
Making PhpDig store the content in SQL tables won't take up any less space (I guess unless you used compression). You can limit the storage of text content by changing this line in the config file:
Code:
define('CONTENT_TEXT',0); |
Ok bloodjelly at this time a test this solution , if it work i'll submit my modified phpDig version to the community ! :banana:
|
I have modifieed this function :
Quote:
By this : Quote:
|
I would also like a way to store the text into MySQL, instead of the server. Why is it stored on the server in the first place? Wouldn't the content be better placed in the database?
|
You don't necessarily have to modify the PhpDig 1.8.7 code to store text in MySQL. Try setting the following in the config file instead:
Code:
define('SUMMARY_DISPLAY_LENGTH',150); //Max chars displayed in summary Code:
if (DISPLAY_SUMMARY) { Code:
$db_some_text = preg_replace("/([ ]{2,}|\n|\r|\r\n)/"," ",implode("",$text)); This was all changed/improved in PhpDig 1.8.8 RC1 so that highlighting can work the same whether or not you store text in files, and PhpDig 1.8.8 RC1 has a TEXT_STORAGE_AMOUNT option so that you can set how much text to store. If using PhpDig 1.8.8 RC1, you'll probably want the following config options set to store text in MySQL but not files: Code:
define('DISPLAY_SNIPPETS',true); // display text snippets |
My solution don't work , it's the good way but phpdig storing nothing into Mysql :bang: .
|
This is my new modification
Code:
//================================================= It's work at 98% but this function , cause a bug , Code:
//================================================= |
Code:
//================================================= Don't work :angry: |
All times are GMT -8. The time now is 04:56 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.