Tag Archives: PHP

Gist Page Improvements


I noted my Gists page had gone a bit wonky last week which I assumed (wrongly) to be a caching issue. Turns out GitHub now need a User Agent passed with any request to the API, in their words “Requests … Continue reading

Posted in WordPress | Tagged GitHub API, PHP | Leave a comment

Gists Page


I’ve added a new page to the site, a Gists page, listing simple info and links to the stuff I have on GitHub:Gists. I added this as the interface over at GitHub was starting to get to me. All I … Continue reading

Posted in WordPress | Tagged GitHub API, PHP | Leave a comment

Building A Web Server With A Raspberry Pi


It’s was about time I had a Linux machine at home and with the Raspberry Pi I had a perfect opportunity to get a cheap stand alone Linux build. I’m going to go through setting up the Pi as a … Continue reading

Posted in Linux | Tagged apache2, composer, Debian, git, MySQL, PHP, Raspberry Pi, SSH, VNC | Leave a comment

Running PHP Scripts With Cron


Yesterday I came to a problem which could be solved by a PHP script ran at regular intervals on a web server, and as I have not touched crontab in a while I thought it worth a quick summary. Without … Continue reading

Posted in Linux | Tagged Cron, PHP | 1 Comment

PHP Database Based Session Handling


Due to a move to a multi-server environment at work to cope with peak time performance I was asked to implement a replacement to PHP’s standard session handling so that sessions would work in this new environment. In PHP 5.4 … Continue reading

Posted in PHP | Tagged Databases, PHP, Sessions | Leave a comment

PHP cURL Wrapper


I’ve put up a gist of a simple PHP cURL wrapper which simplifies basic content fetching with cURL. The class throws standard Exceptions in case of no content being returned or incorrect settings being passed as arguments. Setup:

Simple setters for … Continue reading

Posted in PHP | Tagged cURL, PHP | Leave a comment

Generic Archive Page WordPress Template


Now that I have a few posts up I realised it would probably be a good idea to add an archive links page to my blog.  As the standard Twenty Ten WordPress theme does not have one of these I … Continue reading

Posted in WordPress | Tagged PHP, Templates | Leave a comment

Authors Page Template For Multi-Author WordPress Blog


As it turns out there is not a simple / native way to have a single page with information on all authors for a multi-author blog with WordPress. So time to make my first WordPress template…. Starting Point I used … Continue reading

Posted in WordPress | Tagged PHP, Templates | Leave a comment

Arrays In PHP $_POST / $_GET Values


HTTP requests can of course be spoofed, just because your form says data should be transferred using GET or POST with specified names for element keys, this does not mean someone can’t alter the form before submission or even just use a … Continue reading

Posted in PHP | Tagged forms, PHP, Security, Validation | Leave a comment

PHP Error Handling – Part Two, Standard Error Handling


This is a short post continuing the topic of errors in PHP, following on from error types & exceptions and leading to custom error handling, this post is a quick summary of the standard error reporting provided by PHP. In … Continue reading

Posted in PHP | Tagged Error Handling, PHP | Leave a comment