Knowledgebase

PHP & Development

Versions, extensions, limits, cron and the shell.

The settings developers come looking for: which PHP version a site runs, how to change it, which extensions are available, how to raise memory and upload limits, where the error log is, and how to schedule a cron job. Written for people who already know what they want to change and just need to know where it is.

How to call an external API from PHP

cURL, an authentication header and a decoded JSON response — the three parts of calling any external API from a PHP script.

Guide PHP & Dev 8 min
How to check which PHP version your site uses

A one-line PHP script and the PHP settings screen in your control panel both show the exact version your site runs on.

FAQ PHP & Dev 3 min
How to debug a blank white page in PHP

A white screen means PHP hit an error and showed nothing — here is how to make it show you exactly what happened and where.

Guide PHP & Dev 6 min
How to deploy your website from Git

Adding SSH keys, connecting a remote and choosing pull-based or push-to-deploy — what a Git deployment setup needs on hosting.

Guide PHP & Dev 8 min
How to deploy your website with rsync

The rsync flags that matter, a dry run before the real one, and how to stop it overwriting files it should have left alone.

Guide PHP & Dev 7 min
How to deploy a Laravel application

Point the document root at Laravel's public folder, set up .env, run migrations, and cache the config — what a Laravel deploy needs.

Guide PHP & Dev 9 min
How to enable a PHP extension

Most PHP extensions are a checkbox away in your control panel — here is where to find it and what to do when one is missing.

Guide PHP & Dev 5 min
How to get PHP dates and timezones right

Setting the right timezone in php.ini, and the one habit — storing everything in UTC — that stops multi-timezone dates going wrong.

Guide PHP & Dev 6 min
How to increase PHP max execution time

Where max_execution_time lives, how to raise it without root access, and the point at which a longer limit stops being the right answer.

Guide PHP & Dev 5 min
How to increase the PHP memory limit

Where memory_limit is set, how to raise it safely, and why a higher number is not always the actual fix for an exhausted-memory error.

Guide PHP & Dev 6 min
How to increase the PHP upload file size

Two directives control upload size, not one — miss the second and a bigger upload_max_filesize changes nothing at all.

Guide PHP & Dev 5 min
How to read a PHP error log

The error log names the exact file and line that failed — here is where to find it and how to read what it is telling you.

Guide PHP & Dev 6 min
How to run a Node.js application on your hosting

Node needs a long-running process that shared hosting cannot give it — here is what that means and where a Node app actually belongs.

Guide PHP & Dev 6 min
How to run a PHP script on a schedule

Cron runs a PHP script on a schedule with no browser involved — here is the five-field syntax and how to check a run actually worked.

Guide PHP & Dev 7 min
How to secure a PHP application

The handful of defences that stop almost every real attack on a PHP application, and the reasoning behind each one.

Article PHP & Dev 11 min
How to send email from PHP reliably

mail() sends, but it rarely authenticates — here is how to send through SMTP instead so the message actually reaches the inbox.

Guide PHP & Dev 7 min
How to set environment variables on your hosting

Without root access, environment variables come from a control panel screen where one exists, or from a .env file your app loads itself.

FAQ PHP & Dev 5 min
How to set up SSH keys for your hosting

Generate a key pair, add the public half to your hosting account, and connect over SSH without a password from then on.

Guide PHP & Dev 6 min
How to set up a staging environment

A subdomain, its own database, and a safe way to copy data across — what a staging environment needs before you can trust it.

Guide PHP & Dev 8 min
How to turn PHP error display on while you debug

A short-term switch that shows errors on the page while you debug, and must be turned off again before anyone else sees the site.

FAQ PHP & Dev 4 min
How to upgrade PHP without breaking your site

Check compatibility, test on staging, then switch the live version over — the order that keeps a PHP upgrade from taking your site down.

Guide PHP & Dev 8 min
How to use .htaccess on your hosting account

One file that controls redirects, rewrites and access rules for a whole folder — and one typo in it that can take the site offline.

Guide PHP & Dev 7 min
How to use Composer on shared hosting

Composer runs fine on shared hosting over SSH — here is how to install it, run it, and keep dependencies out of the public folder.

Guide PHP & Dev 7 min
Ten .htaccess rules worth knowing

Ten .htaccess rules that come up again and again, from forcing HTTPS to blocking hotlinking, with working syntax for each one.

Article PHP & Dev 9 min

Other topics

Hosting with support that answers

Free SSL, free migration and a 30-day money-back guarantee.
See Hosting Plans