anyone coder know how to display mkhoj ads on pc browser
how to display mkhoj ads
Collapse
X
-
thanx gum but i am alredy try this code its not working i want to display mkhoj ads on pc browser like opera internet explore mozila like etc mkhoj no issue to display mkhoj ads on pc its only display on mobile device but i see on another site they display mkhoj ads on pc browser so can help me i am very thanx to u
Comment
-
Originally posted by GumSlone View PostUsePHP Code:$mkhoj_test = true;
Comment
-
friends in mkhoj ads,a line HTTP_USER_AGENT command line is
identify users internet browsing agent(like as opera,mozilla,nokia72 etc.)
its function collect information of users & browsers & send to mkhoj.
& mkhoj identify mobile & pc browser, & they display add or NO.
if we set defaut USER_AGENT in our server/php code.
then a default user agent string send to mkhoj and our ads are
display in our pc also.
if we set opera mini or nokia N72 USER AGENT string default, our ads
display in pc also.
they are three type of methods for set our user agent string
TYPE 1;
.htaccess
Add the following line to your .htaccess file and that should do the trick:
php_value user_agent Opera/9.80 (J2ME/MIDP;Opera Mini/4.2.14912/812; U;en) Presto/2.2.0
TYPE 2:
PHP set
You could also use an ini_set to define the user agent too, just place this PHP line into the head of the script doing the Curl:
ini_set('user_agent', 'Opera/9.80 (J2ME/MIDP;Opera Mini/4.2.14912/812; U;en) Presto/2.2.0');
Set it in Curl
You can also set the parameter in the Curl script itself, meaning that only this action is identified as Opera mini. Just add the following line into the Curl script in your PHP (not forgetting to change the $curl variable to whatever you're using:
curl_setopt($curl, CURLOPT_USERAGENT, 'Opera/9.80 (J2ME/MIDP;Opera Mini/4.2.14912/812; U;en) Presto/2.2.0');
For more information read the original piece of content at TorrentialWebDev as they deserve all the praise for this. If you'd like to learn how to scrape website content using Curl, check out my tutorial.
this trick is not tested,i think its work fine if u can install.
Rajesh
Comment
-
friends in mkhoj ads,a line HTTP_USER_AGENT command line is
identify users internet browsing agent(like as opera,mozilla,nokia72 etc.)
its function collect information of users & browsers & send to mkhoj.
& mkhoj identify mobile & pc browser, & they display add or NO.
if we set defaut USER_AGENT in our server/php code.
then a default user agent string send to mkhoj and our ads are
display in our pc also.
if we set opera mini or nokia N72 USER AGENT string default, our ads
display in pc also.
they are three type of methods for set our user agent string
TYPE 1;
.htaccess
Add the following line to your .htaccess file and that should do the trick:
php_value user_agent Opera/9.80 (J2ME/MIDP;Opera Mini/4.2.14912/812; U;en) Presto/2.2.0
TYPE 2:
PHP set
You could also use an ini_set to define the user agent too, just place this PHP line into the head of the script doing the Curl:
ini_set('user_agent', 'Opera/9.80 (J2ME/MIDP;Opera Mini/4.2.14912/812; U;en) Presto/2.2.0');
Set it in Curl
You can also set the parameter in the Curl script itself, meaning that only this action is identified as Opera mini. Just add the following line into the Curl script in your PHP (not forgetting to change the $curl variable to whatever you're using:
curl_setopt($curl, CURLOPT_USERAGENT, 'Opera/9.80 (J2ME/MIDP;Opera Mini/4.2.14912/812; U;en) Presto/2.2.0');
For more information read the original piece of content at TorrentialWebDev as they deserve all the praise for this. If you'd like to learn how to scrape website content using Curl, check out my tutorial.
this trick is not tested,i think its work fine if u can install.
Rajesh
Comment
-
mkjoh adds see
Originally posted by rdxmob View Postanyone coder know how to display mkhoj ads on pc browser
Comment
Comment