You are here:Home
  • Narrow screen resolution
  • Wide screen resolution
  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • green color
  • blue color

Markup, style, scripting, and server-side techniques

IE7 CSS Problem

CSS Tweaks
Friday, 17 June 2011

Did you know that IE7 does not understand some of CSS properties depending on how classes names are written? How? Here is answer.

Function to format filesize

Monday, 27 December 2010
This lightweight function will display file size in a user friendly format without much effort. I.e.: // will output i.e. 1KB (function always accepts bytes value)
echo convert(1024);
Last Updated ( Monday, 27 December 2010 )

Getting MIME of remote file with Zend Framework

Friday, 09 April 2010
If you ever need to get content type of remote file from within PHP, this class will come in handy. Supposing you need to check external link if it is an mp3 file. You will be able to do this: $sniffer = new Smartycode_Http_Mime();
$contentType = $sniffer->getMime($url);
if('audio/mpeg3' == $contentType) echo 'It is MP3';
Last Updated ( Friday, 09 April 2010 )

PHP code check

Friday, 12 March 2010
I've started working on PHP Code Check online tool, you can test early version of it here. Internally, it's based on CodeSniffer parser. I am looking forward on to providing more options like uploading files (single or zipped package), prettier output and detailed explanation of errors. This will target Zend coding standards, however other standards might be provided later. Happy testing, and please comment and give your feedback here. Thanks.

Code autocomplete for array objects (foreach)

Saturday, 06 February 2010
Here is a quick tip on enabling code auto-completion on array of objects (i.e. when you fetch array of objects from a database table adapter).
Last Updated ( Saturday, 06 February 2010 )
Results 6 - 10 of 25


Your server OS of choise


Related Articles