A handy reference because I always forget. %a – The abbreviated weekday name (“Sun”) %A – The full weekday name (“Sunday”) %b – The abbreviated month name (“Jan”) %B – The full month name (“January”) %c – The preferred local date and time representation %d – Day of the month (01..31) %H – Hour of the day, 24-hour clock (00..23) %I – Hour of the day, 12-hour clock (01..12) %j – Day of the year (001..366) %m – Month of the year (01..12) %M – Minute of the hour (00..59) %p – Meridian indicator (“AM” or “PM”) %S – Second of the minute (00..60) %U – Week number of the current year, starting with the first Sunday as the first[…]

PHP memory limit is a very simple error to solve. When loading new plugin to a CMS or transferring data into a database this error may effect areas of your program: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1841890 bytes) in /the_path/to_your/file.php Two simple lines of code can make all the difference. If you don’t have root access or you don’t want to change your server configuration attach this code to the top of the file: 1 2   ini_set("memory_limit","32M"); If you want to change the memory limit for all the files on your server add this code to your php.ini file giving the error. 1 2   memory_limit = 32M This should let you[…]