Tag Archives: Web Development

2009 On More Than Scratch The Surface

About 6 Comments

Happy New Year to all! A year ago, after looking at my Google Analytics stats for the year, I wrote a post reviewing 2008. I figure I may as well do it again for 2009 and also take the opportunity to explain the direction of this site.

Continue reading

Sharepoint As A CMS – Microsoft Tech.Ed Australia 2009

| Created: October 21st, 2009
Content Management Systems 5 Comments

It’s been over a month since I published my notes on the Thursday session of Microsoft Tech.Ed Australia 2009. In that post, I promised to write up the SharePoint discussion session separately. Finally, here it is.

Continue reading

Microsoft Tech.Ed Australia 2009 (Thursday)

| Created: September 18th, 2009
Web Development 1 Comment

I was fortunate to attend Microsoft Tech.Ed Australia 2009 last week. I made copious notes during the day, so I thought I’d share them. Continue reading

Amazing Results – Optimising Image Size Using Smush.it

| Created: October 30th, 2008
Web Page Optimisation 57 Comments

There are dozens of new web based applications being launched every day. Most are moderately useful, but it’s rare that I actually need to use one. After playing with them for a while, I normally abandon them and go back to the core tools I use to get things done.

Well, I found one that’s going right into my toolset: smush.it, the image optimisation web application.

Continue reading

Centered Fixed Width Layout And Scrollbar Problem

| Created: October 25th, 2008
CSS 24 Comments

I recently ran into a CSS problem with a centered fixed width layout. It’s probably been written about before and experienced web developers may already know this, but it caught me out. I’m reasonably experienced, so I thought it worth mentioning here. Continue reading

NetBeans IDE 6.5 Beta for PHP Developers

| Created: August 18th, 2008
PHP Development 31 Comments

In one of my older posts, on PHP Performance Profiling with APD, there’s a discussion in the comments about which IDE is best to use with PHP. Terence Chang recommends Zend Studio and mentions Eclipse. Dreamweaver’s also discussed and I state that I just use a text editor (with syntax highlighting).

Against that backdrop, I read with interest that the NetBeans IDE 6.5 Beta has just been released and that it now caters to PHP developers (article by Lloyd Dunn). Continue reading

Creating A JavaScript Array Dynamically Via PHP

| Created: March 20th, 2008
PHP Development 16 Comments
Update – 1 August 2013:
There are lots of suggestions in the comments that are better than my original solution. Also, with 5 years of hindsight, I’d approach it differently anyway! The way I’d do this now would be as follows:
[sourcecode language=”php”]
<script type="text/javascript">
var lcValues = <?php echo json_encode($myPHPArray); ?>;
</script>
[/sourcecode]
So much simpler! PHP4 has almost disappeared so there’s no reason not to use json_encode. I’d recommend that you stop reading now and just go with that.

If you use PHP to create web pages, there may be times when you need to create a JavaScript array dynamically from a PHP array. This is not hard to do, but there is a trap you need to be careful of: dealing with arrays containing only a single element. Continue reading

PHP Performance Profiling With APD On Windows

| Created: December 27th, 2007
Web Page Optimisation 26 Comments

When writing code, its important to keep system performance in mind. No matter how useful your software is, if it places too much stress on the server, it won’t be used. How can you tell if your code is efficient? Well, experience helps, but it also pays to have good tools. Continue reading