[PHP] looking for a PHP texte indexer
Hi all, I have a small job ad website, where some poster tend to flood with the same ad, just in order to be on top of the recent sort. To perturb the strict duplication detection (yes it's weak), they add one or two words that makes difference. The result is a duplication of many ads. I would like to search for duplicates by looking for ads with 80%-90% same words and decide they're the same, so that I can group them. Of course, putting a limiting mecanism or even a moderation is scheduled, but I want to process existing first. I dont want to use MySQL for indexing, I believe text indexers are best tools for this: Am I wrong? What would you suggest me to process and lookup for duplicates in that situation? -- RMA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] looking for a PHP texte indexer
Mihamina Rakotomandimby miham...@rktmb.org hat am 11. Juni 2012 um 11:12 geschrieben: Hi all, I have a small job ad website, where some poster tend to flood with the same ad, just in order to be on top of the recent sort. To perturb the strict duplication detection (yes it's weak), they add one or two words that makes difference. The result is a duplication of many ads. I would like to search for duplicates by looking for ads with 80%-90% same words and decide they're the same, so that I can group them. Of course, putting a limiting mecanism or even a moderation is scheduled, but I want to process existing first. I dont want to use MySQL for indexing, I believe text indexers are best tools for this: Am I wrong? What would you suggest me to process and lookup for duplicates in that situation? Maybe take a look at http://de.php.net/manual/de/function.similar-text.php http://de.php.net/manual/de/function.levenshtein.php -- RMA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Which workstation????
Hi, All There was an interesting talk on the PHP Conference Spring 2012: Concepts of Success: Choose Your Framework http://phpconference.com/2012spring/keynotes#session-3 If somebody has been there, please write some notes ... I personally haven't had the time to join but am quite interested, what the developer of the frameworks say about their own systems in comparison to others. Pro and (more interesting) Contra arguments. The only stuff I found is in german and quite limited: http://it-republik.de/php/artikel/FLOW3-Zend-Symfony-Auf-der-Suche-nach-dem-besten-Framework-4826.html Bye Simon On Tue, Jun 5, 2012 at 2:22 PM, Simon Schick simonsimc...@googlemail.comwrote: Hi, Farzan I do not really get your point of confusion ... What you've posted here are tools/frameworks that do not to the same stuff at all, yes you could even use all without missing something ... cakephp .. is a full-stack PHP-Framework. Yes, I have to say that there's quite a bunch of full-stack frameworks in PHP you could choose and I myself would recommend one by knowing how much experience you have in PHP :) smarty .. is a template-engine for PHP. If you want to use smarty, twig, php itself or another library as template-engine is up to you. Using a template-engine for some programmers I know just feel like a better separation between the view and the controler/model (search for ModelViewControler if you don't know what I mean here). netbeans .. is an IDE where you can develop with. I prefer to use PhpStorm, others use EclipsePDT, Notepad++ or even the basic editor of windows. This is just about syntax-highlight, code-completion and other things helping you to develop your code. Hope that helps :) Bye Simon On Tue, Jun 5, 2012 at 2:10 PM, Farzan Dalaee farzan.dal...@gmail.comwrote: hi guys i really confuse by choosing the best work station for php ( cakephp , smarty , net bean , ... ) , please give me some advisdes. and please tell why which one is better, tnx best regards farzan
Re: [PHP] Re: show info from mysql db
On 06/10/2012 09:50 AM, Tim Dunphy wrote: You had been keeping the password secret, but it looks like you accidentally leaked it, so a replacement might be in order :) oh wow.. gotta hate when you do that!!! on it! Glad you got it fixed. Typos can be little buggers to find sometimes. me too.. fell back to the old 'echo hello' test strategy .. have to try to remember that strategy before i go running for help.. :) FYI: When developing, make sure to have error_reporting = E_ALL and display_errors = On or be sure to tail your error_log file. tim On Sun, Jun 10, 2012 at 12:15 PM, Adam Richardsonsimples...@gmail.com wrote: On Sun, Jun 10, 2012 at 8:25 AM, Tim Dunphybluethu...@gmail.com wrote: $dbc = mysqli_connect('127.0.0.1','admin',secret','trek_db') or die ('Could not connect to database'); used to be... $dbc = mysqli_conect('127.0.0.1','admin','Duk30fZh0u','trek_db') or die ('Could not connect to database'); You had been keeping the password secret, but it looks like you accidentally leaked it, so a replacement might be in order :) Glad you got it fixed. Typos can be little buggers to find sometimes. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php