Category: PHP Scripts
-
How to query mysql for previous month?
Last updated:
I was working on a php project, where i wanted to count the total number of clients for last previous month, starting from 1st to 30th. For example, if the current month is Sep 2012, i wanted to find the count of clients i received for the August 2012. You need not bang your head…
-
Fixing set_magic_quotes_runtime deprecated in PHP
Last updated:
To fix the deprecated warning causing by PHP 5.3, all you have to do is replace the [php]set_magic_quotes_runtime(0); [/php] with [php] //set_magic_quotes_runtime(0); if(version_compare(PHP_VERSION, ‘5.3.0’, ‘<‘)) { set_magic_quotes_runtime(0); //18th line } [/php] I have seen this error in wordpress and vbulletin.
-
Fix – Deprecated: Assigning the return value of new by reference is deprecated in PHP5.3
Last updated:
i recently updated to latest PHP 5 from PHP 4 and my wordpress blog was littered with these errors. I have seen these warnings before with PHP 5. Dont worry! The fix is very easy. Deprecated: Assigning the return value of new by reference is deprecated in /home/topbest/public_html/wp-settings.php on line 472 Deprecated: Assigning the return value of new…
-
Auto generate invoices from csv files with PHP
Last updated:
Tax season again, and i had to submit all invoices to file taxes. I always wanted a way to automatically generate invoices from the CSV file on a fly, through the sales and billing activity csv file downloaded from 2checkout. I never liked buying accounting software specifically for this and i believe anything can be…
-
Mysql Query – Use brackets for multiple conditions!
Last updated:
Often you might be in situations where you want to query your mysql database with multiple AND and OR statements in the WHERE clause., which is why i use brackets to nest either OR and AND statments. Those conditions within the brackets will be executed first in the mysql query. Lets say for example, SELECT…
-
10+ Best Social Network Scripts in PHP
Last updated:
i have been searching for a while for instant turnkey php scripts to start my own social network site. I must say that i am totally impressed with the scripts and these are the best ones i have seen to start a social network. I have listed both open source free ones and commercial ones…
-
25+ Very Useful PHP Class libraries for Developers
Last updated:
I am gonna post here some the very useful php libraries and classes which will come so handy during coding. You might run into various requirements which is why i compiled these php components. All the php libraries listed below is free software and can be downloaded in the original authors website. FPDF http://www.fpdf.org/ FDPF…
-
10+ Great PHP Scripts to create a Social Network
Last updated:
I have been searching for some of the best php scripts (both free and paid ones) to create a social network in my website. The following are some of the nice php scripts, which i believe are instant turnkey solutions to create a social network with your site. The list would really help if you…
-
15+ Best Free PHP IDEs for PHP Developers
Last updated:
I have always loved open source IDEs for php code development and from what i have seen most of the best php editors are commercial, yet there are only few free ones available, so i have decided to put up a list of pretty handful ones. I am sure there are many many php programmers…
-
Eclipse IDE loading slow?
Last updated:
There has been a lot of talk on the Web regarding the Eclipse IDE which is regarded as the best editor and IDE for PHP and javascript development and other languages including. i did give a try on the the new kit and later realized that the latest version of Java JRE is needed to…