January 2006
3 posts
2 tags
Converting a string to an integer on the fly (for...
Use CAST. For example: SELECT CAST(1 AS UNSIGNED);
Jan 19th
2 tags
Replacing strings in MySQL
Use REPLACE. For example: REPLACE( haystack , 'find' , 'replace' )
Jan 19th
1 tag
PHP 'doggie' easter egg
An apparent easter egg in some versions of PHP will display a picture of a dog when any PHP script is loaded with a particular query string. You can turn off ‘expose_php’ in php.ini to avoid revealing your PHP version in this way. More: http://www.sitepoint.com/blogs/2006/01/08/phps-doggie-easter-egg/
Jan 9th