<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Camilo Lozano III</title>
	<atom:link href="http://blog.camilord.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.camilord.com</link>
	<description>class OS { var Linux = Servers; var Mac = Graphics; var Windows = Solitair; }</description>
	<lastBuildDate>Tue, 08 May 2012 13:21:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Zend Framwork: Accessing Database in different ways</title>
		<link>http://blog.camilord.com/2012/05/08/zend-framwork-accessing-database-in-different-ways/</link>
		<comments>http://blog.camilord.com/2012/05/08/zend-framwork-accessing-database-in-different-ways/#comments</comments>
		<pubDate>Tue, 08 May 2012 13:11:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=684</guid>
		<description><![CDATA[Assuming I declared some variables in application.ini named webbyConfig and initialized in Bootstrap.php; $config = Zend_Registry::get('webbyConfig'); $this-&#62;_db = new Zend_Db_Adapter_Pdo_Mysql(array( 'host' =&#62; $config['db_host'], 'username' =&#62; $config['db_user'], 'password' =&#62; $config['db_passwd'], 'dbname' =&#62; $config['db_name'], )); .... $sql = 'SELECT a.col1,b.col2 FROM tableA AS a, tableB AS b WHERE a.id = b.id AND a.id = 1'; $stmt = [...]]]></description>
			<content:encoded><![CDATA[<p>Assuming I declared some variables in application.ini named <strong>webbyConfig</strong> and initialized in Bootstrap.php;</p>
<pre class="brush:php">$config = Zend_Registry::get('webbyConfig');
$this-&gt;_db = new Zend_Db_Adapter_Pdo_Mysql(array(
        'host'     =&gt; $config['db_host'],
        'username' =&gt; $config['db_user'],
        'password' =&gt; $config['db_passwd'],
        'dbname'   =&gt; $config['db_name'],
    ));

....

$sql = 'SELECT a.col1,b.col2 FROM tableA AS a, tableB AS b WHERE a.id = b.id AND a.id = 1';

$stmt = $this-&gt;_db-&gt;query($sql);
print_r($stmt-&gt;fetchAll());</pre>
<p>and this is another way accessing the db&#8230;</p>
<pre class="brush:php">$sql = 'SELECT a.col1,b.col2 FROM tableA AS a, tableB AS b WHERE a.id = b.id AND a.id = 1';

$db = Zend_Db_Table::getDefaultAdapter();

$stmt = $db-&gt;query($sql);
print_r($stmt-&gt;fetchAll());</pre>
<p>That&#8217;s what I know so far&#8230; I think there&#8217;s more&#8230; still exploring ZF. <img src='http://blog.camilord.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/05/08/zend-framwork-accessing-database-in-different-ways/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/usr/lib64/php/modules/mcrypt.so&#8217; &#8211; libmcrypt.so.4: cannot open shared object file: No such file or directory in Unknown on line 0</title>
		<link>http://blog.camilord.com/2012/05/07/php-mcrypt-library-missing-in-centos-6-2/</link>
		<comments>http://blog.camilord.com/2012/05/07/php-mcrypt-library-missing-in-centos-6-2/#comments</comments>
		<pubDate>Mon, 07 May 2012 23:34:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Linux System Administration]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=679</guid>
		<description><![CDATA[I created some script in php, encrypting and decrypting my emails. but when I ran the script, got some issues. When I traced it, the php-mcrypt library is missing. I am using CentOS 6.2 at 64bit architecture. Some says I will move the libmcrypt.so.4 and  libmcrypt.so.4.4.8 from /usr/lib to usr/lib64 and /usr/lib/php/mcrypt.so to /usr/lib64/php/mcrypt.so but [...]]]></description>
			<content:encoded><![CDATA[<p>I created some script in php, encrypting and decrypting my emails. but when I ran the script, got some issues. When I traced it, the php-mcrypt library is missing. I am using CentOS 6.2 at 64bit architecture. Some says I will move the libmcrypt.so.4 and  libmcrypt.so.4.4.8 from /usr/lib to usr/lib64 and /usr/lib/php/mcrypt.so to /usr/lib64/php/mcrypt.so but when I check the file, its not there. The files aren&#8217;t there at the installed directory. to check this issues, cast <strong>php -v</strong>;</p>
<pre class="brush:shell">[root@mail lib64]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mcrypt.so' - libmcrypt.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.3 (cli) (built: Feb  2 2012 23:47:49)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd.</pre>
<p>If there&#8217;s PHP Warning, then that means there are missing files&#8230; if more warnings, probably there&#8217;s a problem during installation of your php. But in this guide, I will only discuss how to fix the php-mcrypt issues.</p>
<p>First download the lacking files, which are;</p>
<ol>
<li>libmcrypt-2.5.8-4.el5.centos.x86_64.rpm</li>
<li>php-mcrypt-5.3.3-1.el6.x86_64.rpm</li>
</ol>
<p>You can download those files at rpmfind.net or rpm.pbone.net. Then extract the files inside the rpm pack by using the command <strong>rpm2cpio</strong>.</p>
<pre class="brush:shell">[root@mail ~]# rpm2cpio libmcrypt-2.5.8-4.el5.centos.x86_64.rpm | cpio -idmv
[root@mail ~]# rpm2cpio php-mcrypt-5.3.3-1.el6.x86_64.rpm | cpio -idmv</pre>
<p>Then move the files that you just extracted to /usr/lib64 and after moving the files, restart httpd and cast again the <strong>php -v</strong>.</p>
<pre class="brush:shell">[root@mail ~]# php -v
PHP 5.3.3 (cli) (built: Feb  2 2012 23:47:49)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd.
[root@mail ~]#</pre>
<p>This is the output you should get, no PHP Warnings and php-mcrypt should be working fine. That&#8217;s it! Happy solving!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/05/07/php-mcrypt-library-missing-in-centos-6-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AGILE introduction</title>
		<link>http://blog.camilord.com/2012/05/07/agile-introduction/</link>
		<comments>http://blog.camilord.com/2012/05/07/agile-introduction/#comments</comments>
		<pubDate>Mon, 07 May 2012 12:47:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Project Management]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=671</guid>
		<description><![CDATA[Watching this video will totally understand what is AGILE all about&#8230;]]></description>
			<content:encoded><![CDATA[<p>Watching this video will totally understand what is AGILE all about&#8230; <img src='http://blog.camilord.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><iframe width="450" height="253" src="http://www.youtube.com/embed/OJflDE6OaSc" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/05/07/agile-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework: Upload File Demo</title>
		<link>http://blog.camilord.com/2012/05/04/zend-framework-upload-file-demo/</link>
		<comments>http://blog.camilord.com/2012/05/04/zend-framework-upload-file-demo/#comments</comments>
		<pubDate>Fri, 04 May 2012 03:31:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=665</guid>
		<description><![CDATA[I&#8217;ve came across in uploading file using Zend Framework (ZF)&#8230; Since ZF is new to me, its like I&#8217;m studying PHP just like when I started, I have to memorize the predefined variables and functions but in ZF, its their classes, defined variables and its functions. Here&#8217;s my codes though its not perfect but its [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve came across in uploading file using Zend Framework (ZF)&#8230; Since ZF is new to me, its like I&#8217;m studying PHP just like when I started, I have to memorize the predefined variables and functions but in ZF, its their classes, defined variables and its functions. Here&#8217;s my codes though its not perfect but its working.</p>
<pre class="brush:php">&lt;?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
        $form = new Application_Form_Upload();
        $this-&gt;view-&gt;assign('form',$form);
    }

		private function getFileExtension($filename)
		{
			$fext_tmp = explode('.',$filename);
			return $fext_tmp[(count($fext_tmp) - 1)];
		}

		public function uploadAction()
		{
			$dest_dir = "uploads/";

			/* Uploading Document File on Server */
			$upload = new Zend_File_Transfer_Adapter_Http();
			$upload-&gt;setDestination($dest_dir)
						 -&gt;addValidator('Count', false, 1)
						 -&gt;addValidator('Size', false, 1048576)
						 -&gt;addValidator('Extension', false, 'jpg,png,gif,pdf');
			$files = $upload-&gt;getFileInfo();

			// debug mode [start]
			echo '&lt;hr /&gt;
							&lt;pre&gt;';
			print_r($files);
			echo '	&lt;/pre&gt;
						&lt;hr /&gt;';
			// debug mode [end]

			try
			{
				// upload received file(s)
				$upload-&gt;receive();
			}
			catch (Zend_File_Transfer_Exception $e)
			{
				$e-&gt;getMessage();
				exit;
			}

			$mime_type = $upload-&gt;getMimeType('doc_path');
			$fname = $upload-&gt;getFileName('doc_path');
			$size = $upload-&gt;getFileSize('doc_path');
			$file_ext = $this-&gt;getFileExtension($fname);
			$new_file = $dest_dir.md5(mktime()).'.'.$file_ext;

			$filterFileRename = new Zend_Filter_File_Rename(
				array(
					'target' =&gt; $new_file, 'overwrite' =&gt; true
			));

			$filterFileRename-&gt;filter($fname);

			if (file_exists($new_file))
			{
				$request = $this-&gt;getRequest();
				$caption = $request-&gt;getParam('caption');

				$html = 'Orig Filename: '.$fname.'&lt;br /&gt;';
				$html .= 'New Filename: '.$new_file.'&lt;br /&gt;';
				$html .= 'File Size: '.$size.'&lt;br /&gt;';
				$html .= 'Mime Type: '.$mime_type.'&lt;br /&gt;';
				$html .= 'Caption: '.$caption.'&lt;br /&gt;';
			}
			else
			{
				$html = 'Unable to upload the file!';
			}

			$this-&gt;view-&gt;assign('up_result',$html);
		}

}</pre>
<p>Below is the source file of whole project in Zend Framework for you to test it out&#8230; Enjoy!</p>
<p>Source Code: <a class="downloadlink" href="http://blog.camilord.com/wp-content/plugins/download-monitor/download.php?id=29" title="Version1.0 downloaded 7 times" >ZF Upload File Demo (7)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/05/04/zend-framework-upload-file-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing Web Folders</title>
		<link>http://blog.camilord.com/2012/04/27/securing-web-folders/</link>
		<comments>http://blog.camilord.com/2012/04/27/securing-web-folders/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 02:23:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Linux System Administration]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=662</guid>
		<description><![CDATA[Create or Add this to .htaccess AuthType Basic AuthName "Members Only" AuthUserFile /home/user/public_html/secretfolder/.htpasswd &#60;limit GET PUT POST&#62; require valid-user &#60;/limit&#62; then execute the htpasswd command; htpasswd -c /home/user/public_html/secretfolder/.htpasswd admin That&#8217;s it.. if you visit http://servername.com/~user/secretfolder/ &#8212; it will prompt a username and password. So you have to enter admin as username and the password you [...]]]></description>
			<content:encoded><![CDATA[<p>Create or Add this to <strong>.htaccess</strong></p>
<pre class="brush:csharp">AuthType Basic
AuthName "Members Only"
AuthUserFile /home/user/public_html/secretfolder/.htpasswd
&lt;limit GET PUT POST&gt;
         require valid-user
&lt;/limit&gt;</pre>
<p>then execute the <strong>htpasswd</strong> command;</p>
<pre class="brush:shell">htpasswd -c /home/user/public_html/secretfolder/.htpasswd admin</pre>
<p>That&#8217;s it.. if you visit http://servername.com/~user/secretfolder/ &#8212; it will prompt a username and password. So you have to enter admin as username and the password you entered.</p>
<p>Enjoy~!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/04/27/securing-web-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syntax error on line 293 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory</title>
		<link>http://blog.camilord.com/2012/04/26/syntax-error-on-line-293-of-etchttpdconfhttpd-conf-documentroot-must-be-a-directory/</link>
		<comments>http://blog.camilord.com/2012/04/26/syntax-error-on-line-293-of-etchttpdconfhttpd-conf-documentroot-must-be-a-directory/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 22:41:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Linux System Administration]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=659</guid>
		<description><![CDATA[Fixing the error Syntax error on line 293 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory I already encounter this problem few years back yet I forgot the solution. As you know, its a basic thing to do that we will set users home and its directories right? And I&#8217;m done with it. yet the error [...]]]></description>
			<content:encoded><![CDATA[<p>Fixing the error</p>
<pre class="brush:shell">Syntax error on line 293 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory</pre>
<p>I already encounter this problem few years back yet I forgot the solution. As you know, its a basic thing to do that we will set users home and its directories right? And I&#8217;m done with it. yet the error keeps coming when restarting Apache.</p>
<pre class="brush:shell">[root@localhost ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 293 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
                                                           [FAILED]</pre>
<p>This is actually the SELINUX causing this error. After you change the following;</p>
<pre class="brush:shell">[root@localhost home]# chmod 711 user
[root@localhost home]# chmod 755 user/public_html</pre>
<p>You should disabled your SELINUX.</p>
<p>In CentOS 5.2, you can simply type &#8220;<strong>setup</strong>&#8220;, go to Firewall Configuration and select SELinux: Disabled</p>
<p>But in CentOS 6.2, you can&#8217;t find it at &#8220;setup&#8221;, edit the file /etc/selinux/config and change the following from:</p>
<pre class="brush:as3"># This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted</pre>
<p>to</p>
<pre class="brush:as3"># This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted</pre>
<p>Then reboot your machine/box!</p>
<p>That&#8217;s it! It should be working fine&#8230; You can use paths in users home. <img src='http://blog.camilord.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/04/26/syntax-error-on-line-293-of-etchttpdconfhttpd-conf-documentroot-must-be-a-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework: changing pulic to public_html for CPanel</title>
		<link>http://blog.camilord.com/2012/04/25/zend-framework-changing-pulic-to-public_html-for-cpanel/</link>
		<comments>http://blog.camilord.com/2012/04/25/zend-framework-changing-pulic-to-public_html-for-cpanel/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 07:21:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=655</guid>
		<description><![CDATA[In Zend Framework, the public files are located at public folder, but CPanel are located at public_html. What you will do is create a symlink. ln -s public public_html then this structure will work: htdocs/ myvhost.com/ public/ application/ library/ public_html # this is actually a symlink pointing to public That&#8217;s it&#8230; &#160; Reference: http://stackoverflow.com/questions/3903127/hosting-php-zend-framework-application-on-shared-cpanel-server Thanks [...]]]></description>
			<content:encoded><![CDATA[<p>In Zend Framework, the public files are located at public folder, but CPanel are located at public_html. What you will do is create a symlink.</p>
<pre class="brush:csharp">ln -s public public_html</pre>
<p>then this structure will work:</p>
<pre class="brush:shell">htdocs/
  myvhost.com/
    public/
    application/
    library/
    public_html # this is actually a symlink pointing to public</pre>
<p>That&#8217;s it&#8230; <img src='http://blog.camilord.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>Reference: http://stackoverflow.com/questions/3903127/hosting-php-zend-framework-application-on-shared-cpanel-server</p>
<p>Thanks to: <a href="http://stackoverflow.com/users/215966/prodigitalson">prodigitalson</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/04/25/zend-framework-changing-pulic-to-public_html-for-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zendify: windows application to auto-populate to the host file and httpd.conf for ZendFramework Projects</title>
		<link>http://blog.camilord.com/2012/04/22/zendify-windows-application-to-auto-populate-to-the-host-file-and-httpd-conf-for-zendframework-projects/</link>
		<comments>http://blog.camilord.com/2012/04/22/zendify-windows-application-to-auto-populate-to-the-host-file-and-httpd-conf-for-zendframework-projects/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 13:30:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Visual C#]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=647</guid>
		<description><![CDATA[I&#8217;m been studying again about ZendFramework and its been a hassle for me to edit the hosts file from &#8220;C:\WINDOWS\system32\drivers\etc\&#8221; and the Apache httpd.conf file from &#8220;C:\Program Files\Apache Group\Apache2\conf\&#8221;. So I created my windows application to auto-populate my ZendFramework project entry. To check how hassle in setting the configurations, see ZendFramework &#8211; Intro video and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m been studying again about ZendFramework and its been a hassle for me to edit the hosts file from &#8220;C:\WINDOWS\system32\drivers\etc\&#8221; and the Apache httpd.conf file from &#8220;C:\Program Files\Apache Group\Apache2\conf\&#8221;. So I created my windows application to auto-populate my ZendFramework project entry. To check how hassle in setting the configurations, see <a href="http://www.youtube.com/watch?v=m7svJHmgJqs&amp;feature=relmfu">ZendFramework &#8211; Intro</a> video and you&#8217;ll know. <img src='http://blog.camilord.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p style="text-align: center;"><iframe src="http://www.youtube.com/embed/m7svJHmgJqs" frameborder="0" width="420" height="315"></iframe></p>
<p>&nbsp;</p>
<p>Here it is&#8230; Below is the download link of my windows application, you can use it also if you want. I am sharing it to the world for free and of course no warranty. <img src='http://blog.camilord.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>Requirements: .Net Framework 2.0 or latest version</p>
<p>Download: <a class="downloadlink" href="http://blog.camilord.com/wp-content/plugins/download-monitor/download.php?id=28" title="Version1.0 downloaded 9 times" >zendify (9)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/04/22/zendify-windows-application-to-auto-populate-to-the-host-file-and-httpd-conf-for-zendframework-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ReCaptcha and SAJAX Integration</title>
		<link>http://blog.camilord.com/2012/04/18/recaptcha-and-sajax-integration/</link>
		<comments>http://blog.camilord.com/2012/04/18/recaptcha-and-sajax-integration/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 18:17:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=639</guid>
		<description><![CDATA[It&#8217;s been a while using this method and I&#8217;m posting this since my friends are asking how to integrate the Recaptcha and SAJAX. What to edit: Edit recaptchalib.php (ReCaptcha Library File), at line 106 or under recaptcha_get_html() function, add &#8220;id&#8221; attributes of both recaptcha_challenge_field and recaptcha_response_field. function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false) [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while using this method and I&#8217;m posting this since my friends are asking how to integrate the Recaptcha and SAJAX.</p>
<p>What to edit:</p>
<ol>
<li>Edit recaptchalib.php (ReCaptcha Library File), at line 106 or under recaptcha_get_html() function, add &#8220;<strong>id</strong>&#8221; attributes of both <strong>recaptcha_challenge_field</strong> and <strong>recaptcha_response_field</strong>.</li>
</ol>
<pre class="brush:php">function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
{
	if ($pubkey == null || $pubkey == '') {
		die ("To use reCAPTCHA you must get an API key from &lt;a href='https://www.google.com/recaptcha/admin/create'&gt;https://www.google.com/recaptcha/admin/create&lt;/a&gt;");
	}

	if ($use_ssl) {
                $server = RECAPTCHA_API_SECURE_SERVER;
        } else {
                $server = RECAPTCHA_API_SERVER;
        }

        $errorpart = "";
        if ($error) {
           $errorpart = "&amp;error=" . $error;
        }
        return '&lt;script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '&amp;hl=en"&gt;&lt;/script&gt;

	&lt;noscript&gt;
  		&lt;iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;
  		&lt;textarea name="recaptcha_challenge_field" id="recaptcha_challenge_field" rows="3" cols="40"&gt;&lt;/textarea&gt;
  		&lt;input type="hidden" name="recaptcha_response_field" id="recaptcha_response_field" value="manual_challenge"/&gt;
	&lt;/noscript&gt;';
}</pre>
<p>&nbsp;</p>
<p>Source Code: <a class="downloadlink" href="http://blog.camilord.com/wp-content/plugins/download-monitor/download.php?id=27" title="Version1.0 downloaded 5 times" >Sample Recaptcha and SAJAX (5)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/04/18/recaptcha-and-sajax-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: My Standard Firewall in CentOS Web Server (iptables)</title>
		<link>http://blog.camilord.com/2012/01/28/my-standard-firewall-in-centos-web-server-iptables/</link>
		<comments>http://blog.camilord.com/2012/01/28/my-standard-firewall-in-centos-web-server-iptables/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 23:05:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Info.Tech]]></category>
		<category><![CDATA[Linux System Administration]]></category>

		<guid isPermaLink="false">http://blog.camilord.com/?p=629</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://blog.camilord.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-629">Password:<br />
<input name="post_password" id="pwbox-629" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://blog.camilord.com/2012/01/28/my-standard-firewall-in-centos-web-server-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

