Tracking E-mail very simple

For chrome:

Step 1:

Sign up on Shivalink.com Mail Tracker App here

It will send you activation link in mail just click on that. And login in app and Generate html by entering mail subject.

Step 2:

Install the below given extention in chrome browser

Chrome Extention

Now create new html and add the previously created html from Shivalink Mail App.

Step 3:

Goto gmail and compose new email, now when you click the body you will see ‘G’ like icon name Gorgias, just click on that and insert the template. Now Write your mail and click send.

Now your mate read your mail you will get the mail with time, to look ip you can login to Shivalink Mail App.

Also there is little hack in it. you can just send the image src path to your mate and when he clicks on it you will receive the mail and also you can see his ip in Shivalink mail App.

add js or css depending on browser with php with the below short code:


<?=    (preg_match('/Safari/i',$_SERVER["HTTP_USER_AGENT"] )) ? 'body{line-height:1.2; margin:0;padding:0;} @media print { html, body { margin: 0; padding: 0; }' : '' ?>

Also you can do more with the below code

$u_agent = $_SERVER['HTTP_USER_AGENT'];
$bname = 'Unknown';
$platform = 'Unknown';
$version= "";

//First get the platform?
if (preg_match('/linux/i', $u_agent)) {
$platform = 'linux';
}
elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {
$platform = 'mac';
}
elseif (preg_match('/windows|win32/i', $u_agent)) {
$platform = 'windows';
}

if(preg_match('/Safari/i',$u_agent))
{
$bname = 'Apple Safari';
$ub = "Safari";
}

Hello friends here is the php script to unzip .zip files.

<?php
$zip = new ZipArchive;
$res = $zip->open(‘latest.zip’);
if ($res === TRUE) {
$zip->extractTo(‘./’);
$zip->close();
echo ‘woot!’;
} else {
echo ‘doh!’;
}
?>

insertion-sort

Php program for insertion sort. Easy implementation.

here is the link just try once https://github.com/vishvendrasingh/insertion_sort

<?php
/**Function for sorting an array with insertion sort algorithm.
*
* @param array $array
* @return array
*/
function insertionSort(array $array) {
$length=count($array);
for ($i=1;$i<$length;$i++) {
$element=$array[$i];
$j=$i;
while($j>0 && $array[$j-1]>$element) {
//move value to right and key to previous smaller index
$array[$j]=$array[$j-1];
$j=$j-1;
}
//put the element at index $j
$array[$j]=$element;
}
return $array;
}
$array = range(0, 19);
shuffle($array);
var_dump($array);
$arr = insertionSort($array);
var_dump($arr);
?>

here is the link just try once https://github.com/vishvendrasingh/insertion_sort

Here is 4 best methods to prevent access to your php file directly

  1.  <?php if(count(get_included_files()) ==1) exit(“Error , Contact [email protected]”); echo “data here” ; ?> – See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/
  2. <?php debug_backtrace() || die (“Direct access not permitted”); echo “data here” ; ?> – See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/
  3. <?php if (strpos($_SERVER[‘REQUEST_URI’], basename(__FILE__)) !== false) {die(‘Error , Contact [email protected]’);} echo “data here” ; ?> – See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/
  4. <?php if (basename($_SERVER[‘PHP_SELF’]) == basename(__FILE__)) { die(‘Error , Contact [email protected]’); }; echo “data here” ; ?> – See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/