<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>nsslive.net - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-5566b7a1" type="application/json"/><link>http://nsslive.disqus.com/</link><description></description><atom:link href="http://nsslive.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 07 May 2012 09:25:36 -0000</lastBuildDate><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-521562849</link><description>&lt;p&gt;No problem, glad it worked out!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nshahzad</dc:creator><pubDate>Mon, 07 May 2012 09:25:36 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-521467044</link><description>&lt;p&gt;You're a life saver Nabeel. I've been trying to figure this out for the past couple of weeks. Thank you so much. Take care my friend.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lyman castro</dc:creator><pubDate>Mon, 07 May 2012 05:47:27 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-519587040</link><description>&lt;p&gt;In that link, it looks like they configure it on port 9312 instead of 3312 (not sure why they changed it). I would change that port in the config, and restart searchd and try again.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nshahzad</dc:creator><pubDate>Fri, 04 May 2012 23:11:14 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-519547993</link><description>&lt;p&gt;i think i know what you meant. One more question if you don't mind please. I followed the steps on this website in installing Sphinx: &lt;a href="http://www.crankberryblog.com/2011/intalling-sphinx-on-wamp-localhost-windows" rel="nofollow"&gt;http://www.crankberryblog.com/...&lt;/a&gt; and made it work. I can search through command prompt, however, I get this error when I try to search from my CakePHP application: Notice (1024): Search query failed: connection to localhost:3312 failed (errno=10061, msg=No connection could be made because the target machine actively refused it.) [APP\models\behaviors\sphinx.php. Do you have any idea why? Thanks.&lt;/p&gt;

&lt;p&gt;Lyman&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lyman castro</dc:creator><pubDate>Fri, 04 May 2012 21:40:11 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-519012630</link><description>&lt;p&gt;Hi Lyman, you would do it as you normally do with a model find, just set it to the view and iterate through it. It returns the same results as a normal find call, just filtered to the search.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nshahzad</dc:creator><pubDate>Fri, 04 May 2012 09:22:46 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-518756346</link><description>&lt;p&gt;Hello Nabeel, thanks for this code. I got a very simple question for you. If I have these on my controller:&lt;/p&gt;

&lt;p&gt;$sphinx = array('matchMode' =&amp;gt; SPH_MATCH_ALL, 'sortMode' =&amp;gt; array(SPH_SORT_EXTENDED =&amp;gt; '@relevance DESC')); &lt;br&gt;    $results = $this-&amp;gt;Film-&amp;gt;find('all', array('search' =&amp;gt; 'search string here', 'sphinx' =&amp;gt; $sphinx)); &lt;/p&gt;

&lt;p&gt;How would I pass/display the $result on my View (index.ctp)? Can you give me a sample code please? I would really really appreciate it. Thanks.&lt;/p&gt;

&lt;p&gt;Lyman&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fiveninesixtwosix</dc:creator><pubDate>Fri, 04 May 2012 05:55:35 -0000</pubDate></item><item><title>Re: MySQL Diff Tool</title><link>http://nabeelio.com/2011/04/mysql-diff-tool/#comment-428579089</link><description>&lt;p&gt;Hmm, I wonder why that never came up in my search before? Seems like it's been around too.&lt;/p&gt;

&lt;p&gt;I needed something in PHP for my phpVMS project - I had a ton of SQL diff files, but users were on all sorts of different versions, so the diff files would often fail.&lt;/p&gt;

&lt;p&gt;But it's great to have options!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nshahzad</dc:creator><pubDate>Fri, 03 Feb 2012 09:15:35 -0000</pubDate></item><item><title>Re: MySQL Diff Tool</title><link>http://nabeelio.com/2011/04/mysql-diff-tool/#comment-428545451</link><description>&lt;p&gt;I use this (python) tool to sync my databases: &lt;a href="http://schemasync.org/" rel="nofollow"&gt;http://schemasync.org/&lt;/a&gt;. It spits out patch and revert SQL and works very well to keep database in sync between development and deploy/release versions...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joel Haasnoot</dc:creator><pubDate>Fri, 03 Feb 2012 08:25:08 -0000</pubDate></item><item><title>Re: CakePHP Models &amp;#8211; multiple columns to the same table</title><link>http://nabeelio.com/2009/07/cakephp-models-multiple-columns-to-the-same-table/#comment-413215427</link><description>&lt;p&gt;thank you Nabeel and Man-Eater Lecter, both your approaches helped solve my problem... really appreciate it, Sharing indeed is Good! Kudos to you both...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kimchiu</dc:creator><pubDate>Tue, 17 Jan 2012 03:34:36 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-400734141</link><description>&lt;p&gt;Google Translate leads me to believe this is Arabic - which I don't know :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nshahzad</dc:creator><pubDate>Wed, 04 Jan 2012 16:20:30 -0000</pubDate></item><item><title>Re: Sphinx and CakePHP</title><link>http://nabeelio.com/2012/01/sphinx-and-cakephp/#comment-399659587</link><description>&lt;p&gt;نبيل الشحات يبدو من اسمك انك مصري وعندك خبرة ممتازة بالفريم ورك كيك بي اتش بي &lt;br&gt;لماذا لا تعمل مدونة بالعربي لكي نستفيد مما علمك الله :)&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mohamed ali </dc:creator><pubDate>Tue, 03 Jan 2012 11:36:12 -0000</pubDate></item><item><title>Re: MySQL Diff Tool</title><link>http://nabeelio.com/2011/04/mysql-diff-tool/#comment-376690927</link><description>&lt;p&gt;Yup that's it. Sorry, I edited the post to add the URL.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nshahzad</dc:creator><pubDate>Thu, 01 Dec 2011 09:59:00 -0000</pubDate></item><item><title>Re: MySQL Diff Tool</title><link>http://nabeelio.com/2011/04/mysql-diff-tool/#comment-376630120</link><description>&lt;p&gt;Found it&lt;br&gt;&lt;a href="https://github.com/nshahzad/MySQLDiff" rel="nofollow"&gt;https://github.com/nshahzad/My...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laadje</dc:creator><pubDate>Thu, 01 Dec 2011 08:01:39 -0000</pubDate></item><item><title>Re: MySQL Diff Tool</title><link>http://nabeelio.com/2011/04/mysql-diff-tool/#comment-376627009</link><description>&lt;p&gt;This MySQLDiff.class.php, is it available somewhere?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laadje</dc:creator><pubDate>Thu, 01 Dec 2011 07:55:30 -0000</pubDate></item><item><title>Re: nsslive site</title><link>http://nsslive.net/2008/11/nsslive-site/#comment-328210757</link><description>&lt;p&gt;Sorry for the late reply - I do not mind at all&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nabeel</dc:creator><pubDate>Wed, 13 Jul 2011 10:07:19 -0000</pubDate></item><item><title>Re: nsslive site</title><link>http://nsslive.net/2008/11/nsslive-site/#comment-328210752</link><description>&lt;p&gt;Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your website? My website is in the exact same area of interest as yours and my users would truly benefit from a lot of the information you provide here. Please let me know if this alright with you. Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">daniel mamann</dc:creator><pubDate>Thu, 02 Jun 2011 21:22:35 -0000</pubDate></item><item><title>Re: Nginx + PHP Query Strings</title><link>http://nabeelio.com/2009/02/nginx-php-query-strings/#comment-328210864</link><description>&lt;p&gt;index.php/this/is/a/path&lt;br&gt;index.php?this=is&amp;amp;a=query&amp;amp;string&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave</dc:creator><pubDate>Wed, 16 Mar 2011 09:51:47 -0000</pubDate></item><item><title>Re: ezSQL Database Library (Improved!)</title><link>http://nabeelio.com/2009/02/ezsql-improved/#comment-328210854</link><description>&lt;p&gt;Thanks for the kind words, Josh! I was in the same position&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nabeel</dc:creator><pubDate>Sun, 16 Jan 2011 21:01:25 -0000</pubDate></item><item><title>Re: ezSQL Database Library (Improved!)</title><link>http://nabeelio.com/2009/02/ezsql-improved/#comment-328210849</link><description>&lt;p&gt;You are officially my new hero.  I loved ez_sql and have used it forever.  However, it did not support mysql routines and I have started using them recently on a major project.  I was so bumbed, but your ezdb for mysqli is awesome and saved me tons of work.  Thank so much.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Josh</dc:creator><pubDate>Sat, 15 Jan 2011 21:52:19 -0000</pubDate></item><item><title>Re: ezDB and PHP 5.3</title><link>http://nabeelio.com/2009/06/ezdb-and-php-5-3/#comment-328210915</link><description>&lt;p&gt;Hi Doug,&lt;/p&gt;

&lt;p&gt;If you have access to PDO, I'd use that. Not all servers/hosts have PDO available, so that's where this comes in. Speed, I'm not sure, it certainly won't be any faster. In terms of security, there's no bound parameters, so there's a minus on that. ezDB was mainly a PHP5 upgrade to the ezSQL class, which I had been using in a few projects before PDO was really an option.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nabeel</dc:creator><pubDate>Mon, 05 Jul 2010 20:57:14 -0000</pubDate></item><item><title>Re: ezDB and PHP 5.3</title><link>http://nabeelio.com/2009/06/ezdb-and-php-5-3/#comment-328210911</link><description>&lt;p&gt;How does this class compare in terms of security and speed with pdo ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">doug</dc:creator><pubDate>Mon, 05 Jul 2010 20:52:24 -0000</pubDate></item><item><title>Re: ezSQL Database Library (Improved!)</title><link>http://nabeelio.com/2009/02/ezsql-improved/#comment-328210847</link><description>&lt;p&gt;i found the problem  i was sending constants instead of vars&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mike</dc:creator><pubDate>Sat, 17 Apr 2010 12:57:02 -0000</pubDate></item><item><title>Re: ezSQL Database Library (Improved!)</title><link>http://nabeelio.com/2009/02/ezsql-improved/#comment-328210844</link><description>&lt;p&gt;Hi Mike,&lt;/p&gt;

&lt;p&gt;Here is my example of usage, I need to update the docs on github to show, but the purpose of creating the class first is for the debug messages.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://github.com/nshahzad/phpVMS/blob/master/core/codon.config.php#L84" rel="nofollow"&gt;http://github.com/nshahzad/php...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nabeel</dc:creator><pubDate>Sat, 17 Apr 2010 12:24:40 -0000</pubDate></item><item><title>Re: ezSQL Database Library (Improved!)</title><link>http://nabeelio.com/2009/02/ezsql-improved/#comment-328210841</link><description>&lt;p&gt;i downloaded and created an example however it will not connect to the db.  And when I look at the DB class it in turn tries to create an ezMySQL object before it connects to the db. I am a beginner.  I think the db class should connect to the DB first. then you should create the SQL object. &lt;/p&gt;

&lt;p&gt;	public static function init($type='mysql')&lt;br&gt;	{&lt;br&gt;		&lt;br&gt;		if($type == 'mysql' || $type == '')&lt;br&gt;		{&lt;br&gt;			if(!self::$DB = new ezSQL_mysql())&lt;br&gt;			{&lt;br&gt;echo 'error initializing';&lt;br&gt;				self::$error = self::$DB-&amp;gt;error;&lt;br&gt;				self::$errno = self::$DB-&amp;gt;errno;&lt;br&gt;			&lt;br&gt;				return false;&lt;br&gt;			}&lt;/p&gt;

&lt;p&gt;doesnt generate an error but it should because it is expecting DB connection data which is never passed upon calling init.&lt;/p&gt;

&lt;p&gt;just a beginners 2 cents.&lt;/p&gt;

&lt;p&gt;here is my example that doesnt work.&lt;/p&gt;

&lt;p&gt;DB::init('mysql');&lt;br&gt;DB::debug();&lt;br&gt;DB::connect(MYSQLHOST,MYSQLUSER,MYSQLPASSWORD,MYSQLDB);&lt;br&gt;$fields = array('form_id', 'name');&lt;br&gt;$results = DB::quick_select('class_form_elements', $fields, "form_id=0");&lt;br&gt;DB::debug();&lt;br&gt;if($results)&lt;br&gt;{&lt;br&gt;    foreach($results as $row)&lt;br&gt;    {&lt;br&gt;        echo $row-&amp;gt;name;&lt;br&gt;    }&lt;br&gt;}&lt;/p&gt;

&lt;p&gt;oh and I changed the order of the params in the class to match above so that isnt the issue.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mike</dc:creator><pubDate>Sat, 17 Apr 2010 12:11:58 -0000</pubDate></item><item><title>Re: CakePHP Models &amp;#8211; multiple columns to the same table</title><link>http://nabeelio.com/2009/07/cakephp-models-multiple-columns-to-the-same-table/#comment-328210933</link><description>&lt;p&gt;That helped me - thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tim Gurske</dc:creator><pubDate>Mon, 15 Feb 2010 21:47:29 -0000</pubDate></item></channel></rss>
