create single pixel transparent image using php

The below is how to create a PHP that will return an image stream of one transparent dot (PNG or GIF)   u can create a transparent 1×1 PNG: header(‘Content-Type: image/png’); echo base64_decode(‘iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=’);   also u can create a Transparent… Continue Reading

How To Set Up Apache Virtual Hosts on CentOS 7

install apache yum -y install httpd Create the Directory Structure mkdir -p /var/www/example.com/public_html mkdir -p /var/www/example2.com/public_html Grant Permissions chown -R $USER:$USER /var/www/example.com/public_html chown -R $USER:$USER /var/www/example2.com/public_htm   ensure that read access is permitted to the general web directory chmod -R… Continue Reading

How To Install MySQL on CentOS 7

In a web browser, visit: https://dev.mysql.com/downloads/repo/yum/   Locate the desired version, and replace it in the below command as an example wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm   install the RPM rpm -ivh mysql57-community-release-el7-9.noarch.rpm   now u can use yum to install mysql server… Continue Reading

PHP create 1 pixel image

create transparent image PHP easily, use the below code : for PNG image : header(‘Content-Type: image/png’); echo base64_decode(‘iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=’); for GIF image : header(‘Content-Type: image/gif’); echo base64_decode(‘R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==’);