$xml = file_get_contents( “FEED URL”); $doc = new DOMDocument(); $doc->preserveWhiteSpace = false; $doc->loadXML( $xml); $xpath = new DOMXpath( $doc); //…
$url = ‘https://api.sendgrid.com/’; $user = ‘username’; $pass = ‘password’; $json_string = array( ‘to’ => array(…
function truncate_str($str, $maxlen) { if (strlen($str) <= $maxlen) { return $str; } …
Create new file and put below code in this file <?php function format_size($size) { $mod = 1024; $units = explode(‘…
If you want to check XSS script than please write below code: checkMagicQuotes();checkXssScript();function checkMagicQuotes(){ if(function_exists(‘get_magic_quotes_gpc’) && get_magic_quotes_gpc()) { function stripslashes_deep($value)…