A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

Douglas Adams

Entries tagged with 'programming'

  • Paypal SOAP MassPayment API

    I recently completed a small programming task for a client that involved using the the Paypal SDK to create a PHP script that allowed for making use of the Paypal MassPayment API over SOAP. Whilst on the surface this looked a reasonably simple task it proved to be more complicated than I first envisioned. Firstly there were problems with the SDK from Paypal that had to be overcome, mainly due to a lack documentation regarding the fact that the library required PEAR to be installed on the server in order to operate. However this might have come up in the installation process which I unfortunately couldn’t follow as I can’t run CLI PHP commands on my local server (WAMP) and I also couldn’t work out how to set up FTP on the same local server. Most of the PHP SDKs [...]

    Categories:Web Design|PHP\MySQL

    Tags: | |

  • Random Categorised Quotes

    I started with some static quotes at the top of each page in the masthead and wanted to change this to a random selection from a database. In the database the quotes are categorised and in order for the navigation to ‘know’ where it is and apply a current class to the relevant link I already have a variable $selected. At first I thought this would be rather more straight forward than it turned out to be. First step is to retreive the data from the database. As wordpress is already connected to the database I just have to select the database, in this case ‘nigeljo_quotes’. Secondly, to differentiate between whether I am on a design page or a photography page I test for the existence of the variable $selected, which will only exist if I am in one of [...]

    Categories:Web Design|PHP\MySQL

    Tags: |