Simon Davies Digital ltd

Simon Davies

Posts Tagged: PHP

PHP Insert into array at position

Posted by & filed under PHP.

The other day I found myself needing to insert into an array at a given position, so I wrote this little function. For example if you have pulled a list of posts from a database and are going to loop through these to output the HTML, but want to insert an advert after the third […]

Using composer with MAMP’s version of PHP

Posted by & filed under MAMP, PHP.

After my laptop has been running really for a couple of weeks now, I have decided to order some new RAM and do a clean install of Lion. This has given me a great¬†opportunity¬†to configure my development environment in a cleaner and more organised way. As a developer I do install a number of packages […]

Syncing MAMP with Dropbox

Posted by & filed under MAMP.

I use MAMP as my local development environment. MAMP is brilliant as it installs the software (Apache, MySQL and PHP) used to run a web server similar to a LAMP server. This is great as it means you can test your files locally without having to upload them first. As I work between a MacBook and an iMac I was looking for a away to keep my projects in sync between the 2 machines. I turned to Dropbox which is a service which synchronises a folder on your computer over the internet.

Contact

Want to hear more about Simon Davies Digital and what we can do for your business or simply want to say hello, then get in touch.

+44 7846 400933
hello@simon-davies.name