help me in coding %phn%

Started on the old forum in June 2011 · view the original in the archive · old links redirect here

3 replies · 386 views · started 15 years ago · 1 min read

3 participants
shushant Developer · 207 posts #1

Bro i want to make %phn% or :phone: tag to show user agent.Can any1 of u help me

metulj Super moderator Principal · 1,726 posts #2

WTF %phn% tag ?!?

you only need this

<?php
$browser=$_SERVER['HTTP_USER_AGENT'];
echo $browser;
?>

to display User Agent

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

CreativityKills Lead · 833 posts #3

shushant wrote: Bro i want to make %phn% or :phone: tag to show user agent.Can any1 of u help me

$sample_text = 'You are using :phone: to view this site.';
$sample_text = stristr($sample_text, array(':phone:' => $_SERVER['HTTP_USER_AGENT']));
echo $sample_text;

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close