$theTitle=wp_title(" - ", false); if($theTitle != "") { ?> } else { ?> } ?>
by Andrew Johnstone
In: General
25 Apr 2006Well, I purchased a Mac Book Pro roughly a month ago and considering I have never used a Mac, i’m quite surprised as to how quickly I have adapted. Within a week I had a good grasp of the platform and now I have everything sync’d to or through my laptop, whether that be incoming […]
In: PHP
12 Mar 2006I found this a little amazing, but SWSoft don’t actually fully support their own software. “Unfortunately, SWSoft does not fully support the API that is built in to Plesk and more than likely, they will request that we first perform an upgrade to the latest version of Plesk before they provide any further support.”, Rackspace. […]
In: PHP
22 Jan 2006Lately, i’ve been reading Advanced PHP Programming, by George Schlossnagle, which I must say is an excellent book. Below is an excerpt, which I find particularly interesting on the topic of error handling. “Production Display of Errors How to notify users of errors is often a political issue. All the large clients I have worked […]
In: PHP
15 Jan 2006Update: I tested the script in my previous post to generate domains on an alternative server and it worked flawlessly (Not quite sure why, and I need to test further). However, one of the features that are missing from Plesk is to create aliases of domains. Through the Plesk API, you can create a redirect […]
In: PHP
11 Jan 2006Today I was trying to generate domains through Plesk with the RPC API, the following actually creates the domain, despite throwing the following error. Looking at the domain in plesks admin it states “Hosting (Domain has no hosting configured)”. Once configuring the domain through the “Physical hosting setup page for domain testdomaingeneration3.waidev6.com” interface page successfully […]
In: Linux
24 Dec 2005I can never seem to remember, how to remember how to reconfigure a subdomain with plesk without looking it up, so for quick reference. <directory /home/httpd/vhosts/ajohnstone.com> php_admin_value open_basedir none </directory> /usr/local/psa/admin/sbin/websrvmng -a OR /usr/local/psa/admin/sbin/websrvmng -u –vhost-name=domain.com Also, today I learnt that you cannot attach the onmouseover event to an option element. I found this rather […]
In: MySQL
20 Dec 2005MySQL Install multiple instances. Create a folder called Conf with Instance.1.ini, Instance.2.ini, and Instance.3.ini. The Port each are listening on should all differ, as well as having a different data directory. I named these C:\Program Files\MySQL\MySQL Server 5.0\MySQLData\Instance1 mysqld –install “Mysql-Instance-1″ –defaults-file=”C:\Program Files\MySQL\MySQL Server 5.0\Conf\Instance.1.ini” mysqld –install “Mysql-Instance-2″ –defaults-file=”C:\Program Files\MySQL\MySQL Server 5.0\Conf\Instance.2.ini” mysqld –install “Mysql-Instance-3” […]
In: General
17 Dec 2005I was browsing through google for any new information on large scale PHP deployments, and to my surprise I got a message telling me my machine had been infected! Considering I am very careful what I run on my machine, and haven’t had a virus on my computer in over two or more years I […]
Lately i’ve been developing with MySQL3, and it’s almost like hitting your head against a brick wall with its limitations and specific documentation is difficult to find. Some of the limitations: Subqueries. ’select id from t where grp in (select grp from g where u > 100)’ Add DISTINCT to Aggregates JOINs with ambiguous columns […]
In: PHP
28 Nov 2005I’ve been using Zend Studio for Eclipse (beta) for several weeks in a rewrite of a framework and numerous sites at work and overall I really like the IDE. Its got some great features and being based on the eclipse project makes it really extensible and customizable. With debugging, profiling, code completion, code formatting and […]
I have been a developer for roughly 10 years and have worked with an extensive range of technologies. Whilst working for relatively small companies, I have worked with all aspects of the development life cycle, which has given me a broad and in-depth experience.