Find Jobs
Hire Freelancers

PHP Operating system detection

$10-12 USD

Cerrado
Publicado hace más de 2 años

$10-12 USD

Pagado a la entrega
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 } ?>
ID del proyecto: 31560021

Información sobre el proyecto

14 propuestas
Proyecto remoto
Activo hace 2 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
14 freelancers están ofertando un promedio de $13 USD por este trabajo
Avatar del usuario
Hi, I have checked the code and can see the problem, will solve it right now, thanks..............................
$11 USD en 1 día
4,9 (462 comentarios)
6,8
6,8
Avatar del usuario
-------------- Nice to meet you. I'm Sergey. -------------- I'm php expert. Please chat me. I can solve your your problems.
$11 USD en 7 días
5,0 (6 comentarios)
3,1
3,1
Avatar del usuario
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', $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; } $os=get_operating_system(); ?> <?php if ($os == "Windows") { ?> show html code Windows <?php } ?> <?php if ($os == "Mac") { ?> show html code Mac <?php } ?>
$11 USD en 7 días
5,0 (2 comentarios)
2,7
2,7
Avatar del usuario
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 help you complete the task as fast as possible. $user_agent = get_operating_system(); echo $user_agent;
$10 USD en 1 día
5,0 (2 comentarios)
1,3
1,3
Avatar del usuario
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 you are looking for a correct result, I will be able to be good candidate and you will be satisfied about my work. I can start immediately. Looking forward to your response. Warm regards,
$11 USD en 7 días
5,0 (2 comentarios)
1,3
1,3
Avatar del usuario
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 en 1 día
3,5 (2 comentarios)
1,3
1,3
Avatar del usuario
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, WordPress, Java, Python, JavaScript, ReactJs, Bootstrap, I can start now, please come to chat, to discuss more.
$11 USD en 2 días
5,0 (2 comentarios)
0,6
0,6
Avatar del usuario
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, Node.js, Redux, Typescript, Firebase, AWS. Would love to discuss this further with you. Thanks
$11 USD en 7 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I think I know your problem is on something like function calling problem. In here we need to literally call that first.
$11 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de QATAR
Mansoura, Qatar
5,0
1
Forma de pago verificada
Miembro desde may 16, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.