Category PHP

Git pull from php

How to make git pull in php with exec()

Upload a canvas image throug ajax

I wanted to save a screenshot from the game I build so players can see the last moment before the end game. The games uses html5 canvas, so the idea was to upload the canvas and save it as png image in server. We can send the image to server as a base64 encoded:

Weblinks Oct 2019

Interesting links from the web

How to paginate mysql database results using php function

A simple php function to return mysql table rows limited by page number.

Prepare LAMP for Gila CMS in Ubuntu 18.04

A very quick guide to prepare LAMP environment on your local machine or an online server running Ubuntu.

Install devilbox on Ubuntu 16.04

The devilbox is a modern and highly customisable LAMP and MEAN stack replacement based purely on docker and docker-compose running on all major platforms.

How to install missing PHP extensions

  Image Processing and Generation sudo apt-get install php7.0-gd  Zip module for PHP sudo apt-get install php7.0-zip  JSON module for PHP
7/12!1 1