Home » Tag Archives: php

Tag Archives: php

7 Ways to Improve Your Test Suite with Docker

I try to be disciplined in writing tests, but it’s usually not long before something gets in the way. Integration-testing interdependent APIs, verifying unusual server configurations, and seeding complex data make testing large applications tough. While plenty of solutions exist, I have found myself leaning on Docker more and more in the past year. Why Docker for Testing? If you ...

Read More »

Performing Zero Downtime Releases

You’ve spent months working on a project, and it’s finally time to show it to the world. You’re proud of what you’ve achieved, but you aren’t quite sure how to release it for others to see. If that sounds familiar, read on, and together we will cover how to perform a release of your code, with minimal interruption and difficulty. ...

Read More »

Building a PHP Command Line App with Docker

Over the past few months, I’ve started using Docker for all my local development work. Previously I had experimented with VMs, but because we deal in microservices, running six or more VMs on my Macbook Pro was starting to get cumbersome. Docker has clear advantages in system utilization, but I also like that my local configuration can easily be used ...

Read More »

PHP Export to Excel Example

It can become neccessary to export data to a browser in excel format or just create an excel document from data received from a database or any other source. In this example we will create a (PHP) web app that exports data to excel. For this example we will use: A computer with PHP >= 5.5 installed notepad++ Microsoft Excel ...

Read More »

PHP, Ajax and Mysql Example

Ajax is a powerful web technology, it allows a web app’s communication with a server, without having to refresh the browser. MySQL is a relational database that allows users to store and retrieve data. It is a free available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL).               According ...

Read More »

PHP File Upload Example

File uploads has now become an integral part of many, if not all social apps (both web apps and mobile apps). The ability to view, upload and share pictures, videos and other media types are components of a viral social app. For this singular reason most web masters and app developers incorporate file uploads into the social apps they develop. ...

Read More »

PHP Base64 Encode/Decode Example

Encoding in base64 simply involves converting binary data to ASCII text. Encoding in base64 is done so as to easily and effectively transfer binary data over a network. One of its use case is transferring data in emails.                     In this example we are going to learn how to encode and ...

Read More »

PHP Beautifier Tools Example

In this example we are going to examine some tools that will beautify or properly format PHP source code. It can become neccessary to do this, if source code has been minified or wrongly formatted.                 Below we present some other reasons you might need a source code beautifier: You’ve downloaded an unreadable script: ...

Read More »

PHP Array to String Conversion

Arrays are very popular in programming languages, as they are widely used by programmers to perform different tasks. Arrays are part of the first few topics every new developer or programmer learns. In this example we will learn about arrays, what they are, how to use and manipulate them. For this example we will use: A computer with PHP>= 5.5 installed ...

Read More »