Archive for the ‘PHP’ Category

Browser Dependent Cascading Style Sheets (CSS) in PHP

Friday, December 17th, 2004

Everyday webmasters are learning more about making tables-less web designs. Some problems they face are incompatibilities between browsers. If you can make a CSS layout look consistent in Internet Explorer and Mozilla Firefox , then you have done well. Believe it or not, people are still using the “stone age” version 4 of Netscape Navigator which has horrible CSS support. (more…)

Page Loading Time in PHP

Friday, December 17th, 2004

Learn how to output the time a page takes to load.

Have you every wondered how sites get that “Page loaded in x.xxx seconds.” at the bottom of there pages? It is very simple to do and can be done with any server-side scripting language. I will show you how to do it in PHP.

The script is very simple. First it gets the micro time as the start time. Then at the end it gets the micro time again and finds how many micro seconds have past.

Place this code at the top of your page:

Place this code at the bottom of your page: