Simple PHP Script

Completed Posted Oct 31, 2014 Paid on delivery
Completed 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'; ?>

PHP Software Architecture

Project ID: #6669636

About the project

15 proposals Remote project Active Oct 31, 2014

Awarded to:

talk2agha

Hello, I made a little demo for you. You can go to this domain and try it out: [login to view URL] As you can see, it prints out all domains after the More

$35 USD in 3 days
(7 Reviews)
2.8

15 freelancers are bidding on average $145 for this job

FandaR

A proposal has not yet been provided

$147 USD in 1 day
(365 Reviews)
7.4
letshappy

hello, i am red hat certified engineer and i am more then 4 year experience in this field ready to start now thanks

$221 USD in 4 days
(189 Reviews)
7.3
bob1982

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

$155 USD in 3 days
(359 Reviews)
7.0
einstech

About Us : I'm one the leading freelancer with 300 plus projects successfully delivered . Me & my team has served clients across globe with 40% repeated clients. Our sincere efforts and strong communication skills are More

$263 USD in 4 days
(83 Reviews)
6.4
kimit1234

A proposal has not yet been provided

$65 USD in 3 days
(113 Reviews)
6.0
r0mannn

A proposal has not yet been provided

$70 USD in 1 day
(76 Reviews)
5.1
Flattzi

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

$150 USD in 0 days
(32 Reviews)
4.7
faisal0077

Aucune proposition n'a encore été fournie.

$155 USD in 3 days
(4 Reviews)
3.2
electronis

A proposal has not yet been provided

$100 USD in 3 days
(1 Review)
0.6
kinzarian

Aucune proposition n'a encore été fournie.

$155 USD in 3 days
(0 Reviews)
0.0