August 7th, 2011 Bala Krishna Posted in PHP Function, PHP Programming, PHP Tutorial, Wordpress Plugin, Wordpress Theme, Wordpress Widget 3 Comments »
You might be occasionally come to an error page called 404 which is also known as Page Not Found. A 404 page is an error page which explain site visitors that the page they are looking for not found on the website. If you are having many 404 error page on your website then you may want to redirect all of them to your Word Press home page. It will remove all 404 links from search engine index and transfer all benefits those links have to home page. So, it’s a good idea to get SEO benefit from not exist pages. If [...]
Read the rest of this entry »
April 9th, 2011 Bala Krishna Posted in General, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks No Comments »
Swift Mailer is an robust object oriented library written in PHP5 with lot of useful features. It can be used with any PHP application developed in PHP5. Symfony, Typo3 framework as well as many other open source framework uses this library. The error i am talking about seems to be a common error and lot of people talking on the web about it. I personally encountered this error with Symfony framework when i was trying to send an email to user after registration. The script thrown following error: Fatal error: Uncaught exception ‘Swift_RfcComplianceException’ with message ‘Address in mailbox given [] [...]
Read the rest of this entry »
October 13th, 2010 Bala Krishna Posted in General, PHP Tutorial, Tips and Tricks, Word Press, Wordpress Plugin 3 Comments »
If you are using Word Press as blogging platform then you may be already familiar with Word Press editor auto clean function because of this behavior you can not enter html code in the way you want in editor. Word Press TinyMCE editor automatically clean up html code.  However i find this feature cool and useful because whatever you put in Word Press editor, it automatically create clean HTML code and wipe out all HTML garbage. This is also good in search engine point of  view because search engine loves clean html. But sometime we need to stop this behavior [...]
Read the rest of this entry »
August 17th, 2010 Bala Krishna Posted in General, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Development, Web Technology 2 Comments »
If you are managing server and running multiple websites on server then sure you need to tweak and optimize php setting in php.ini file that works for you. for example, you need to increase max file upload size if you are running a video streaming website or increase memory_limit value due to memory allocation failure in php script. WHM does not allow you to change these values through WHM/Cpanel web interface. All you have to recompile apache with php in order to make critical change in php.ini. Your first step is to check location of php .ini file. You can [...]
Read the rest of this entry »
March 5th, 2010 Bala Krishna Posted in General, Linux, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Word Press, Wordpress Plugin, Wordpress Theme, Wordpress Widget No Comments »
Word Press have missed schedule issue from 2.7 version onwards. Word Press post scheduling was working fine upto  2.6.5 version as many of users reported on web.  You can schedule wordpress post to publish on a specified time. but when time comes post can not publish and shows missed schedule in the admin area.  According to WP guys, this is not the issue that Word Press guys can fix. This issue comes when your web server can not properly execute wp-cron process.  New wordpress wp-cron method run wp-cron in separate process that rely on web server configuration. Everytime Word [...]
Read the rest of this entry »
February 15th, 2010 Bala Krishna Posted in General, PHP Programming, PHP Tutorial, Tips and Tricks, Web Hosting, Wordpress Plugin 1 Comment »
1&1 Linux hosting still support PHP4 as default php processor for .php files. To run PHP5 you need to rename .php file as .php5 file. But it is hard to rename all application files at once. You can use PHP5 in your account by following simple steps below: Create a .htaccess file or edit .htaccess file if you application already using Add below lines on the top on file content AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php Upload .htaccess file to root folder of your hosting account. Done!
Read the rest of this entry »
November 13th, 2009 Bala Krishna Posted in Browser Stuff, Bug Fix, Error Log, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology, Word Press, Wordpress Plugin, Wordpress Theme, Wordpress Widget No Comments »
I recently encounter this issue on my client wordpress mu blog. When i open main blog page after installation an infinite loop occur and stop at dead end in Firefox. I searched a lot about this on wordpress forum. Surprising, issue is stated everywhere in the forums and blog but no solution was suggested. Why Redirect Loop? The issue arise because database was not created during wordpress installation but word press config file was written. WordPress uses wp-config.php file to store database configuration. If WordPress find this file in the installation directory then no further installation procedure begin. WordPress now look at DB to load default blog but [...]
Read the rest of this entry »
October 6th, 2009 Bala Krishna Posted in PHP Function, PHP Programming, PHP Tutorial, Web Development, Web Technology 2 Comments »
Vendor() function basically used to load third party library in CakePHP. This function have been deprecated in the recent CakePHP releases. The vendor function in earlier CakePHP releases has been replace with new App::import method that is more user friendly and allow you to include third party library in several ways. To fix the issue simply replace vendor function with new method. New import method return boolean true or false depend on the library loaded or not. This is useful in some context. With new import method you have option to verify third party library loading and act accordingly so your [...]
Read the rest of this entry »
August 31st, 2008 Bala Krishna Posted in PHP Function, PHP Programming, PHP Tutorial, Security, Tips and Tricks, Web Technology No Comments »
Suhosin is a security product released by Hardened-PHP to secure your PHP application. Hardened-PHP is founded by Stefan Esser, Christopher Kunz and Peter Prochaska from Germany with the primary goal to help php web developers, development organization to secure PHP web application. They also provide searvice to find out security holes in your php applicatn by examining application code. Suhosin comes with two component that can work separately or in collboration. The first component called Suhosin patch that help you to secure your application from some low-lever vulnerabilities like bufferoverflows. The second component comes as PHP extension that reduce risk [...]
Read the rest of this entry »
August 7th, 2008 Bala Krishna Posted in General, Linux, Linux Commands, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology No Comments »
ls : List files/directories in a current directory, equivalent to dir command in dos/windows. ls -al : Shows all files and directories with the details attributes for each file. cd : Change directory Examples: cd ~ : Change your directory to your home directory. cd – : Change to the last directory you were in. tail : Reads and display the end of the file Examples: tail /var/www/me.txt : Display last 20 lines (by default) lines of the given file. tail -f /var/www/me.txt : Watch the file continuously, while it’s being updated. tail -400 /var/www/me.txt : Print last 400 lines [...]
Read the rest of this entry »