{"id":74423,"date":"2022-04-28T08:01:00","date_gmt":"2022-04-28T12:01:00","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/select-add-google-vs-adserver\/"},"modified":"2022-04-28T08:01:00","modified_gmt":"2022-04-28T12:01:00","slug":"select-add-google-vs-adserver","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=74423","title":{"rendered":"Select Add: Google vs Adserver"},"content":{"rendered":"<p>&lt;?php<\/p>\n<p>$isGoogleActive = 1;<br \/>\n$adHeight = $_GET[<span style=\"color:rgb(163,21,21)\">&#39;adHeight&#39;<\/span>];<br \/>\n$adWidth = $_GET[<span style=\"color:rgb(163,21,21)\">&#39;adWidth&#39;<\/span>];<br \/>\n$adSource = $_GET[<span style=\"color:rgb(163,21,21)\">&#39;adSource&#39;<\/span>];<br \/>\n$advertiser = $_GET[<span style=\"color:rgb(163,21,21)\">&#39;advertiser&#39;<\/span>];<\/p>\n<p>$folder = ($advertiser!=&#8221;)? $advertiser:&#8217;google&#8217;;<\/p>\n<p>switch($isGoogleActive){<br \/>\ncase 1:<br \/>\ninclude(&quot;$folder\/{$adWidth}<em>{$adHeight}.php&quot;);<br \/>\necho(&quot;$folder\/{$adWidth}<\/em>{$adHeight}.php&quot;);<br \/>\n?&gt;<br \/>\n&lt;?php<br \/>\nbreak;<br \/>\ncase 0:<br \/>\ninclude(&quot;adserver\/{$adWidth}_{$adHeight}.php&quot;);<br \/>\nbreak;<br \/>\n}<\/p>\n<p>?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?php $isGoogleActive = 1; $adHeight = $_GET[&#39;adHeight&#39;]; $adWidth = $_GET[&#39;adWidth&#39;]; $adSource = $_GET[&#39;adSource&#39;]; $advertiser = $_GET[&#39;advertiser&#39;]; $folder = ($advertiser!=&#8221;)? $advertiser:&#8217;google&#8217;; switch($isGoogleActive){ case 1: include(&quot;$folder\/{$adWidth}{$adHeight}.php&quot;); echo(&quot;$folder\/{$adWidth}{$adHeight}.php&quot;); ?&gt; &lt;?php break; case 0: include(&quot;adserver\/{$adWidth}_{$adHeight}.php&quot;); break; } ?&gt;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[182],"tags":[],"class_list":["post-74423","post","type-post","status-publish","format-standard","hentry","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6024,"url":"http:\/\/bangla.sitestree.com\/?p=6024","url_meta":{"origin":74423,"position":0},"title":"\u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09eb \u0997\u09cd\u09b2\u09cb\u09ac\u09be\u09b2 \u09ad\u09c7\u09b0\u09bf\u09df\u09c7\u09ac\u09b2\u09b8 (PHP 5 Global Variables &#8211; Superglobals)","author":"Author-Check- Article-or-Video","date":"March 15, 2015","format":false,"excerpt":"Superglobals \u09af\u09be \u0995\u09bf\u09a8\u09be \u09b8\u09ac\u09b8\u09ae\u09df \u0985\u09cd\u09af\u09be\u0995\u09cd\u09b8\u09c7\u09b8 \u0995\u09b0\u09be \u09af\u09be\u09df\u0964 \u09af\u09c7\u0995\u09cb\u09a8\u09cb \u0995\u09cd\u09b2\u09be\u09b8, \u09ab\u09be\u0987\u09b2, \u0985\u09a5\u09ac\u09be \u09ab\u09be\u0982\u09b6\u09a8 \u098f \u098f\u0987 superglobals \u0985\u09cd\u09af\u09be\u0995\u09cd\u09b8\u09c7\u09b8 \u0995\u09b0\u09be \u09af\u09be\u09df \u0995\u09cb\u09a8 \u0995\u09bf\u099b\u09c1\u09b0 \u09b8\u09be\u09b9\u09be\u09af\u09cd\u09af \u099b\u09be\u09b0\u09be\u0987\u0964 \u098f\u0987 variable \u0997\u09c1\u09b2\u09cb \u09b9\u09b2 $GLOBALS $_SERVER $_REQUEST $_POST $_GET $_FILES $_ENV $_COOKIE $_SESSION \u00a0 $GLOBALS $GLOBALS \u098f\u0995\u099f\u09bf \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u098f\u09b0 \u0997\u09cd\u09b2\u09cb\u09ac\u09be\u09b2 variable \u09af\u09be \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf script \u098f\u09b0 \u09af\u09c7\u0995\u09cb\u09a8\u09cb \u099c\u09be\u09df\u0997\u09be\u09df \u0997\u09cd\u09b2\u09cb\u09ac\u09be\u09b2\u2026","rel":"","context":"In &quot;\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial&quot;","block_context":{"text":"\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial","link":"http:\/\/bangla.sitestree.com\/?cat=172"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":62821,"url":"http:\/\/bangla.sitestree.com\/?p=62821","url_meta":{"origin":74423,"position":1},"title":"PHP Security &#8211; Guidelines #PHP","author":"Author-Check- Article-or-Video","date":"May 21, 2021","format":false,"excerpt":"This actually is a pretty old short note and was brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1357&title=PHP%20Security%20-%20Guidelines Do not store sensitive information in Cookies Instead of cookies, store sensitive information in Sessions Sessions can also be hacked though safer than cookies PHP session id is pretty random; so in general this is not a\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70059,"url":"http:\/\/bangla.sitestree.com\/?p=70059","url_meta":{"origin":74423,"position":2},"title":"PHP: How to Execute  Remote Scripts\/Services #16","author":"Author-Check- Article-or-Video","date":"August 24, 2021","format":false,"excerpt":"$url is the URL to execute$url = $_GET['url'];$file = fopen ($url, \"r\");if (!$file){echo \"Error.n\";}else{header('Content-Type: text\/xml');while (!feof ($file)){$line = fgets ($file, 1024);echo $line;}}fclose($file);How to pass information from JavaScript to PHP\/JSP - mix of PHP and JavaScript \/\/we are passing some value say 15 from JavaScript to PHPlocation.href=\"?xyz=15\"; fsockopen$fp = fsockopen(\"$urlToExecute\"); if\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70107,"url":"http:\/\/bangla.sitestree.com\/?p=70107","url_meta":{"origin":74423,"position":3},"title":"PHP Security &#8211; Guidelines #16","author":"Author-Check- Article-or-Video","date":"August 26, 2021","format":false,"excerpt":"PHP Security - Guidelines Do not store sensitive information in Cookies Instead of cookies, store sensitive information in Sessions Sessions can also be hacked though safer than cookies PHP session id is pretty random; so in general this is not a problem. Reducing the session security problem: determine current user\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6026,"url":"http:\/\/bangla.sitestree.com\/?p=6026","url_meta":{"origin":74423,"position":4},"title":"\u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09eb \u09ab\u09b0\u09cd\u09ae \u09b9\u09cd\u09af\u09be\u09a8\u09cd\u09a1\u09b2\u09bf\u0982 (PHP 5 Form Handling)","author":"Author-Check- Article-or-Video","date":"February 12, 2015","format":false,"excerpt":"\u0986\u0995\u09cd\u09a4\u09be\u09b0\u09c1\u099c\u09cd\u099c\u09be\u09ae\u09be\u09a8 Department of CSE, University of Chittagong \u00a0 \u0987\u0989\u099c\u09be\u09b0 \u098f\u09b0 \u0995\u09be\u099b \u09a5\u09c7\u0995\u09c7 \u09ac\u09bf\u09ad\u09bf\u09a8\u09cd\u09a8 \u09a7\u09b0\u09a8\u09c7\u09b0 \u09a4\u09a5\u09cd\u09af \u09b8\u0982\u0997\u09cd\u09b0\u09b9 \u0995\u09b0\u09a4\u09c7 \u09ab\u09b0\u09cd\u09ae (form) \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09af\u09bc\u0964 \u098f\u0987 \u09a4\u09a5\u09cd\u09af\u0997\u09c1\u09b2\u09cb \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09aa\u09cd\u09b0\u09cb\u0997\u09cd\u09b0\u09be\u09ae\u09c7\u09b0 \u09ae\u09be\u09a7\u09cd\u09af\u09ae\u09c7 \u09a1\u09be\u099f\u09be\u09ac\u09c7\u099c\u09c7 \u09b8\u09cd\u099f\u09cb\u09b0 \u0995\u09b0\u09be \u09b9\u09df\u0964 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09a4\u09c7 \u09a6\u09c1\u099f\u09bf \u09b8\u09c1\u09aa\u09be\u09b0 \u0997\u09cd\u09b2\u09c1\u09ac\u09be\u09b2 \u09ad\u09c7\u09b0\u09bf\u09af\u09bc\u09c7\u09ac\u09b2 \u0986\u099b\u09c7 \u09af\u09be \u09ab\u09b0\u09cd\u09ae \u09a5\u09c7\u0995\u09c7 \u09ac\u09bf\u09ad\u09bf\u09a8\u09cd\u09a8 \u0989\u09aa\u09be\u09a4\u09cd\u09a4 \u09ac\u09be \u0987\u0989\u099c\u09be\u09b0 \u098f\u09b0 \u0987\u09a8\u09aa\u09c1\u099f \u09a4\u09c1\u09b2\u09c7 \u0986\u09a8\u09a4\u09c7 \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09c3\u09a4\u2026","rel":"","context":"In &quot;\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial&quot;","block_context":{"text":"\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial","link":"http:\/\/bangla.sitestree.com\/?cat=172"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15984,"url":"http:\/\/bangla.sitestree.com\/?p=15984","url_meta":{"origin":74423,"position":5},"title":"Upgrade magento from 2.3.1 to 2.3.2","author":"Sayed","date":"August 19, 2019","format":false,"excerpt":"Upgrade Magento from 2.3.1 to 2.3.2 From 2.3.0 to 2.3.2 should also work; from some other earlier versions may or may not work.. A very similar approach worked for me (Note: I have no interest to work in the industry with Magento). Also, after upgrade, check the error log and\/or\u2026","rel":"","context":"In &quot;Magento 2&quot;","block_context":{"text":"Magento 2","link":"http:\/\/bangla.sitestree.com\/?cat=1907"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/74423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74423"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/74423\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}