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

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==’);

get user ip php

get user client ip address using php :   function get_client_ip_server() { $ipaddress = ”; if ($_SERVER[‘HTTP_CLIENT_IP’]) $ipaddress = $_SERVER[‘HTTP_CLIENT_IP’]; else if($_SERVER[‘HTTP_X_FORWARDED_FOR’]) $ipaddress = $_SERVER[‘HTTP_X_FORWARDED_FOR’]; else if($_SERVER[‘HTTP_X_FORWARDED’]) $ipaddress = $_SERVER[‘HTTP_X_FORWARDED’]; else if($_SERVER[‘HTTP_FORWARDED_FOR’]) $ipaddress = $_SERVER[‘HTTP_FORWARDED_FOR’]; else if($_SERVER[‘HTTP_FORWARDED’]) $ipaddress = $_SERVER[‘HTTP_FORWARDED’];… Continue Reading

[Solved] android could not get unknown property compile

this could happen when missing with activity creation and deletion, it can be fixed easily as below   compile ‘com.android.support:appcompat-v7:22.2.1’ compile ‘com.parse.bolts:bolts-tasks:1.3.0’ compile ‘com.parse:parse-android:1.11.0’ compile ‘com.android.support:design:22.2.1’ compile ‘com.android.support:design:22.2.1′ to be like this : compile’com.android.support:appcompat-v7:22.2.1’ compile ‘com.parse.bolts:bolts-tasks:1.3.0’ compile ‘com.parse:parse-android:1.11.0’ compile ‘com.android.support:design:22.2.1’… Continue Reading