Simple PHP Script
$30-250 USD
Paid on delivery
I need a simple PHP script that I can insert into my landing page that will extract domain names that contain ".com" and ".fr" domain extension and echo the string that contains those domain extensions.
For example, this is my tracking URL:
[login to view URL]<<AFFSUB>>&kw=<<TERMS_HTML>>
The <<TERMS_HTML>> contains strings that look like the following (these are multiple strings to show different examples of strings that are passed):
[login to view URL] petites annonces gratuites doccasion
[login to view URL] webssearches
[login to view URL] yahoo france
0.1:4001 cacaoweb
[login to view URL] accueil pôle emploi fusion des sites [login to view URL] et
msn live window
[login to view URL] omiga-plus
papystreaming papystreaming streaming gratuit et sans pubs v
As you can see, some strings contain domain names and some do not. I need the PHP script to only extract domain names and echo them onto my page. If the <<TERMS_HTML>> string does NOT contain a domain name, then the script should output the user's Browser using this code:
<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE)
echo 'Internet Explorer';
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== FALSE)
echo 'Internet Explorer';
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== FALSE)
echo 'Firefox';
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== FALSE)
echo 'Chrome';
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== FALSE)
echo "Opera";
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== FALSE)
echo "Opera";
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') !== FALSE)
echo "Safari";
else
echo 'Internet Explorer'; ?>
Project ID: #6669636
About the project
15 freelancers are bidding on average $145 for this job
hello, i am red hat certified engineer and i am more then 4 year experience in this field ready to start now thanks
hi i am very good in php/mysql i have read the description and quite sure i am able to do the work with desired accuracy hope to hear from you soon thanks
I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT I CAN DO IT