For the following warning in oscommerce installation: Warning: session_start() [function.session-start]: open(/tmp\sess_5616cfa91211a8ef5ee94d09d21f7eb5, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\catalog\includes\functions\sessions.php on line 67 As a solution they will suggest you to create a tmp folder in your root folder..
Conditional order by sorting using two fields in MySQL
Here’s the scenario. I have two fields in my “listings” table with help of which i wanted to sort (order by) results. First field is “activation_date”. It is the activation date of a listing. Second one is “featured” which stores…
How to check radio button on page load with jQuery
For example you have a set of radio buttons created dynamically with some web language like PHP and you expected one of them selected or checked on most of the times. If, none of them was checked somehow, you would…
Creating a new php functionality page in iLister, the business classifieds system
Here’s the step by step guide to create a new functionality page in iLister. Let’s say we wanted to create a new small enquiry form at the http://www.yoursite.com/contact_us. For this to make happen we will create a new ContactUs handler…
To check in a smarty template if it was the last page of the page results
Here’s a method to check in a smarty template if it was the last page of page results. {if $listings.current_page gte ($listings.total / $results_per_page)|ceil} True {else} False {/if} where $listings.current_page is the current page user is on, $listings.total is the…
Formatting date in a php smarty template
The date string can be formatted in a smarty template like this: $payment.creation_date|date_format:”%d-%m-%Y” where creation_date is an element of $payment array.
New features in Gmail
Gmail new look at a glance (I should have had it posted about 15-20 days ago but could not post due to break from office for some other personal stuff. Posting it as it is now (although it is not…
An advanced HTML to PDF conversion using ezpdf php class
Posting a link to the working example of HTML Form to PDF using “ezpdf” php class. I added some code to this class in order to create more advanced HTML tables cells with borders as shown in the output PDF…
jQuery way to limit input characters using javascript substring function
It’s an example of useful jQuery way to limit user entering a maximum set number of character in your input fields. Example makes use of javascript substring function to limit user upto 20 character which is triggered on keyup event.…
Getting a way around the “No protocol specified, …cannot open display:0.0” message
After doing sudo su – (to give myself root privileges) when I tried editing a file using gedit info.txt it would show me the following error message: