(Markup and Style/CSS)
...it and it works fine for me. Apply it by using Chrome extension, i.e. Stylebot, or put it into separate
file if you are using Opera.
Using Chrome
Install Stylebot extension
Navigate ...
Wednesday, 18 January 2012
(PHP/Debugging)
Here is how to watch a log
file for changes in a Linux command shell.
tail -f log/development.log
This command will let you watch a log
file for changes as soon as they happen.
Monday, 20 June 2011
(Markup and Style/CSS)
As with all
files on the Internet, each needs to have a MIME type assigned. It is the responsibility of webmasters to make sure their
files are properly served.
With "text/*" MIME, browsers / search
Friday, 17 June 2011
(General/LOL)
Here are some snippets of PHP code which were found deep in the SVN source tree...
$shipping_amount=$shipping_amount;
Friday, 17 June 2011
(PHP/Gotchas)
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);
function
Monday, 27 December 2010
(PHP/RapidPHP)
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:
$sn
Friday, 09 April 2010
(PHP/Gotchas)
...lly, 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 ...
Friday, 12 March 2010
(PHP/Gotchas)
... type of integration in your projects.
On a large project where many people are working on multiple
files, using Subversion for version control system is a common choice. The Subversion (or SVN fo...
Thursday, 05 November 2009
(PHP/Performance)
... website and "remember me" feature I've been working on a high traffic website where session
files really cluttered the web server because users were able to use "remember me" feature which...
Wednesday, 21 October 2009
(PHP/Gotchas)
...on css rule like "background: none" on elements as "background: url(none)" thus requesting non-existant
file from server slowing down everything.
That makes me think of another IE 6 bug: if "/none" r...
Friday, 21 August 2009
(Improve/Website Optimization Techniques)
...tors to store non-changing parts of your website in browser cache for faster access.
Using external
files basically results in faster page response times because JavaScript and CSS
files are cache...
Monday, 29 June 2009
(Services/Website Hosting)
...our server's bandwidth and makes loading your webpage lightning fast
Concentrating your website asset
files on a separate domain (i.e. static.domain.com) for better client side caching
Implementin...
Monday, 29 June 2009
(PHP/Performance)
...l have to "yum install lighttpd-fastcgi" for running PHP as FastCGI.
You can use default configuration
file once installed, located in /etc/lighttpd/lighttpd.conf.
Here is a server.modules part of ...
Wednesday, 13 May 2009
(PHP/Performance)
...in is attached before that plugin. (simply adjust the numeric value).
Make sure to edit your layout
file if using MVC to output ONLY html code that comes after html opening tag.
For instance, ...
Wednesday, 22 April 2009
(PHP/Performance)
In this article I'll show you a simple approach to enable your Zend Framework application saving lots of precious bandwidth, and thus, making it more end-users friendly, and save on bandwidth costs.
Tuesday, 10 February 2009
(PHP/Debugging)
...oller
- Action
- Helper
- Logger.php
Add this line to your bootstrap
file:
// register the default action helpers
Zend_Controller_Action_HelperBroker::addPath($r...
Sunday, 08 February 2009
(Improve/Website Optimization Techniques)
Apart from being GZIP'ed, the CSS and Javascript
files can be compressed (minified) by stripping unnecessary comments and whitespaces. This allows to save even more on bandwidth and produce faster web
Sunday, 23 March 2008
(Comments)
... have corrected the code. The code worked fine with Opera and Chrome for me. Make sure that your layout
file looks like this: <head> ... </head> <body> <span>Some text>/span...
Friday, 24 April 2009