Skip to content
LinkedIn Twitter YouTube
tech-head.uk
Skip to content
  • Home
  • Categories
    • Apache
    • email
    • Linux
    • Mac
    • Monitoring
    • MySQL
    • Networking
    • PHP
    • Scripting
    • Tools
    • VMware
    • Windows
  • About
Home Posts tagged "PHP"

Tag: PHP

Running Multiple Versions of PHP on Apache and Ubuntu 20.04

Colin Barlow 3 January 2021 15 October 2022Apache, Linux Apache, Linux, PHP 0

PHP-FPM uses a daemon to manage the multiple PHP versions on a single server. Together we can use Apache and PHP-FPM to host multiple PHP web sites, each using a different versions of PHP at the same time. This is useful because different applications may require different versions of PHP. HP-FPM…

Continue reading

Installing PHP 5 and MySQL 5.5 on Ubuntu 18.04

Colin Barlow 11 May 2020 10 January 2021MySQL, PHP Linux, MySQL, PHP, Ubuntu 1

While I fully understand the security implications of running these legacy and unsupported versions of PHP and MySQL. I had an application that had these dependancies, but I wanted to move to a supported LTS version of Ubuntu. Once you have Ubuntu 18.04 installed with Apache 2, you can use…

Continue reading

Writing Your PHP Webpage to a File

Colin Barlow 19 June 2014 10 January 2021PHP PHP 0

If you would like to write out your webpage to a file you can use the ob_start command.  This function will turn output buffering on.  While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. The contents…

Continue reading

Using PHPMailer to send emails

Colin Barlow 19 June 2014 10 January 2021PHP PHP, PHPMailer 0

I have the need on one of my sites to send emails after generating results from a questionnaire.  I came across phpmailer and really liked it, it has some great functionality and is pretty easy to setup. Here is a code example:

Continue reading

Using MPDF in PHP code

Colin Barlow 5 February 2014 10 January 2021PHP MPDF, PHP 0

I have recently found the need to generate a PDF from the content of a dynamic HTML page. I found a really useful product that allowed me to change the PDF layout via CSS, which allowed me to have a coloured back ground on my page, but have a white…

Continue reading

Create a GUID in PHP

Colin Barlow 17 January 2014 9 January 2021PHP PHP 0

I recently had the need to generate a GUID as part of a PHP based application.  To do this I used the following code: Reference: http://guid.us/GUID/PHP

Continue reading

  • Tags

    3Par Apache Backups Bind Cisco DKIM email File System Firewall Fonts Hacking HPE HTML5 IPTables Linux Mac Mailgun Minikatz MPDF MySQL Nagios Netbackup Networking OpenSSL PHP PHPMailer Postfix PowerShell Proxy Redis Scripting Squid Storage Tools Ubuntu UFW VMware Windows Wordpress
2012 - 2023 © Colin Barlow
Powered by Nirvana & WordPress.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT