Suljettu

PHP Operating system detection

this code is working good but only show the Operating system name but i need make like i don't know where the problem.

<?php

function get_operating_system() {

$u_agent = $_SERVER['HTTP_USER_AGENT'];

$operating_system = 'Unknown Operating System';

//Get the operating_system name

if (preg_match('/linux/i', $u_agent)) {

$operating_system = 'Linux';

} elseif (preg_match('/macintosh|mac os x|mac_powerpc/i', $u_agent)) {

$operating_system = 'Mac';

} elseif (preg_match('/windows|win32|win98|win95|win16/i', $u_agent)) {

$operating_system = 'Windows';

} elseif (preg_match('/ubuntu/i', $u_agent)) {

$operating_system = 'Ubuntu';

} elseif (preg_match('/iphone/i', $u_agent)) {

$operating_system = 'IPhone';

} elseif (preg_match('/ipod/i', $u_agent)) {

$operating_system = 'IPod';

} elseif (preg_match('/ipad/i', $u_agent)) {

$operating_system = 'IPad';

} elseif (preg_match('/android/i', $u_agent)) {

$operating_system = 'Android';

} elseif (preg_match('/blackberry/i', $u_agent)) {

$operating_system = 'Blackberry';

} elseif (preg_match('/webos/i', $u_agent)) {

$operating_system = 'Mobile';

}

return $operating_system;

}

?>

<?php if ($user_agent == "Windows") { ?>

show html code

<?php } ?>

<?php if ($user_agent == "Mac") { ?>

show html code

<?php } ?>

Taidot: PHP

Näytä lisää: php send mail working web hosting, php travian clone working version 2009, php operating hexadecimal value, php email attachment working, working without need supervision, php mailer send inbox good, php operating system detection script, need legal advice don t have a lawyer, i have an invention idea but don't know how to make it, how to make apple don't blink video, i need a new job and don't know what to do, i need to change my life but i don't know how, sorry, i don't know how to bootstrap certbot on your operating system!, i don't like my job but i don't know what else to do, i need help but i don't know what to do, i want to make art but i don't know where to start, i feel like i need to do something but i don t know what, if you don t know how to make money while you sleep

Tietoa työnantajasta:
( 1 arvostelu ) Mansoura, Qatar

Projektin tunnus: #31560021

14 freelanceria on tarjonnut keskimäärin $13 tähän työhön

rohitagarberg

Hi, I have checked the code and can see the problem, will solve it right now, thanks..............................

$11 USD 1 päivässä
(462 arvostelua)
6.8
sumonst21

Hello, I just wanted to send you some resources, if you take a look , you should be able to do it. [login to view URL] [login to view URL] Lisää

$11 USD 1 päivässä
(137 arvostelua)
6.6
eliaa

Hello, I have read your job about "PHP Operating system detection" I am a Web developer with 8 years experience I have used a lot of technology to implement my clients solutions. List of Services that i can help you - Lisää

$30 USD 1 päivässä
(51 arvostelua)
5.4
(20 arvostelua)
3.9
MeWebGuru

Hello, ⭐️⭐️Let's Take Your Web To The Next Level.⭐️⭐️ I respond quickly to any Fixes/Revisions/Changes/Enhancements you need and am happy to accommodate any unique requests. I am also available around the clock online Lisää

$11 USD 7 päivässä
(9 arvostelua)
3.5
SergeyKuznetsovv

-------------- Nice to meet you. I'm Sergey. -------------- I'm php expert. Please chat me. I can solve your your problems.

$11 USD 7 päivässä
(6 arvostelua)
3.1
syednoman110

Bug fixed use following code <?php function get_operating_system() { $u_agent = $_SERVER['HTTP_USER_AGENT']; $operating_system = 'Unknown Operating System'; //Get the operating_system name if (preg_match('/linux/i' Lisää

$11 USD 7 päivässä
(2 arvostelua)
2.7
(6 arvostelua)
2.9
lmhunhthanh91

I have more than 5 years of experience working with PHP, MySQL, API, HTML, Javascript, Node Js, Vue Js, Css, Git, C#, SQL Server, Devexpress, and integrating online payment gateways, Paypal, Payer, PerfectMoney, ... .I Lisää

$10 USD 1 päivässä
(2 arvostelua)
1.3
Daniildedov

Dear client, Thanks for your job posting and hope you and your family would be stayed healthy and safe from pandemic during these uncertain times. The PHP code shows only what system is, so what do you want else? If Lisää

$11 USD 7 päivässä
(2 arvostelua)
1.3
toshazed

I am Ring. I am about 19+ years experienced in GNU/Linux based system, server installation and customization, develop, deploy, security and support. I may help you in this regard.

$15 USD 1 päivässä
(2 arvostelua)
1.3
abdf2010

Hi, It is easy,I can do on time.I work online, where you can track progress of your project.I have 6 years of experience in development(websites,web applications,mobile apps, desktop applications,UI/UX), using PHP, Wor Lisää

$11 USD 2 päivässä
(2 arvostelua)
0.6
Atif0ffical

Hi there! I am Atif, a full stack PHP developer. I'm certain I can do this job perfectly. I have 9+ years of experience in HTML, CSS, Bootstrap, Grid, Flex, Material UI, PHP, Laravel, Javascript, React.js, Vue.js, Nod Lisää

$11 USD 7 päivässä
(0 arvostelua)
0.0
anggisusanto

I think I know your problem is on something like function calling problem. In here we need to literally call that first.

$11 USD 1 päivässä
(0 arvostelua)
0.0