Completed

Simple PHP Script

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:

[url removed, login to view]<<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):

[url removed, login to view] petites annonces gratuites doccasion

[url removed, login to view] webssearches

[url removed, login to view] yahoo france

0.1:4001 cacaoweb

[url removed, login to view] accueil pôle emploi fusion des sites [url removed, login to view] et

msn live window

[url removed, login to view] 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'; ?>

Skills: PHP, Software Architecture

See more: www kw com, kw.com, internet explorer architecture, trident software, internet explorer chrome extension, webssearches, safari extension, rv, php fr, gratuit, chrome extensions, chrome extension internet explorer, simple chrome extension example, php string contain, simple chrome, php script path, chrome simple, script france, extension safari, url chrome browser

About the Employer:
( 3 reviews ) Bensalem, United States

Project ID: #6669636

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

16 freelancers are bidding on average $145 for this job

FandaR

A proposal has not yet been provided

$147 USD in 1 day
(364 Reviews)
7.3
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
(131 Reviews)
7.0
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
CBabbage

Hi, I have done similar work before and know the format, I can use regular expressions to match the domain names, first I will get entire TLD list and match if any TLD is in the text, if it is then match the text from More

$80 USD in 1 day
(50 Reviews)
5.2
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
(26 Reviews)
4.6
bupeherve

Aucune proposition n'a encore été fournie.

$155 USD in 3 days
(5 Reviews)
3.5
faisal0077

Aucune proposition n'a encore été fournie.

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

I have 5+ experience in Web Development (php, mysql, html, jquery, ajax,joomla, wordpress, codignator, ecommerce). Companies Details:- I am present time working in Genius Technologies on the post of Team leader, No More

$155 USD in 3 days
(7 Reviews)
2.8
imranitexpert

Sir, I can write the PHP script exactly the way you want. It is a comparatively an easy task for me. Please visit my website [login to view URL] to know about my skills and previous work. I am new on freelanc More

$63 USD in 3 days
(6 Reviews)
2.8
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
fareed93

Sir i along with my team of [login to view URL] are being developing these types of projects from past 6 years. We can do your project with full analysis and research. We are bidding in your project an approximate amount t More

$356 USD in 40 days
(0 Reviews)
0.0