This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Easiest way to set a frame (Image Magick Required) | |
* | |
* @name Image Composition(Set Frame) | |
* @author AZinkey | |
*/ | |
/********* Set Your World *************/ | |
// define directory seprator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* Configure File *************/ | |
//// Set image name | |
$fname = 'a'; | |
$artFile = $folder . $fname.'.jpg'; | |
$maskFile = $folder . 'c.png'; | |
$frameFile = $folder . 'frame.png'; | |
$cameraFile = $folder . 'c.png'; | |
$art = new Imagick($artFile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP GD use one image to mask another image including transparency | |
* @param (GD)resource $picture orignal reference image | |
* @param (GD)resource $mask shape black/white image | |
* @return (GD)resource output shape image resource | |
* | |
* http://stackoverflow.com/questions/7203160/ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post" action="https://sandbox.paypal.com/cgi-bin/webscr"> | |
<input type="hidden" value="utf-8" name="charset"> | |
<input type="hidden" value="_cart" name="cmd"> | |
<input type="hidden" value="1" name="upload"> | |
<input type="hidden" value="azinkey-facilitator@gmail.com" name="business"> | |
<input type="hidden" value="USD" name="currency_code"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Aws\S3\S3Client; | |
use Aws\S3\Exception\S3Exception; | |
/* creates a compressed zip file */ | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('max_execution_time', 0); | |
//require_once './sql_backup.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function indent($json) { | |
$result = ''; | |
$pos = 0; | |
$strLen = strlen($json); | |
$indentStr = ' '; | |
$newLine = "\n"; | |
$prevChar = ''; | |
$outOfQuotes = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What is .htaccess? | |
The .htaccess file is a configuration file that affects how a webserver responds to various requests. | |
------------------------ | |
Why is it called .htaccess? | |
(Hyper Text + Access) These files were first used to control user access on a per-directory basis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = '[{"id":"21","name":"Clothes","parent":"52"},{"id":"28","name":"category-D","parent":"21"},{"id":"29","name":"Category-E","parent":"28"},{"id":"30","name":"Category-F","parent":"29"},{"id":"31","name":"category-G","parent":"30"},{"id":"48","name":"category-Y","parent":"0"},{"id":"51","name":"category name","parent":"48"},{"id":"52","name":"categoryAAA","parent":"0"},{"id":"53","name":"category","parent":"52"},{"id":"54","name":"Clothes","parent":"0"},{"id":"55","name":"Cloth","parent":"171"},{"id":"56","name":"Headphone","parent":"1455555"},{"id":"57","name":"Mobile","parent":"2147483647"},{"id":"59","name":"category","parent":"21"},{"id":"61","name":"Shirt","parent":"59"},{"id":"62","name":"Shoes","parent":"0"},{"id":"63","name":"Smartphones","parent":"0"},{"id":"64","name":"Test Category Test","parent":"0"},{"id":"65","name":"Smartphones","parent":"21"},{"id":"66","name":"Charger","parent":"21"},{"id":"71","name":"CheckTime","parent":"0"},{"id":"72","name":"category","parent":"0"},{"id":" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$placeid = 'ChIJVxtZ-6W2bTkRmcdDL6lOaZg'; //https://developers.google.com/places/place-id | |
$key = 'AIzaSyBbab2cj0xeIEzgzgyMat-mA-aVAtPVn6Q'; | |
$servername = "localhost"; | |
$username = "root"; | |
$password = "kadam@123"; | |
$fields = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ob_clean(); | |
header('Content-type: application/pdf'); | |
header('Content-Disposition: inline; filename="filename_here.pdf"'); | |
header('Content-Transfer-Encoding: binary'); | |
echo base64_decode($content); | |
ob_end_clean(); |
OlderNewer