Login Register






[PHP] Detecting A Browser filter_list
Author
Message
[PHP] Detecting A Browser #1
Hey Guys! So here's my Source Code for Detecting Browser using PHP, The Explanation is present in the picture below in the form of comments. Feel free to use! If you find any error in the source code please don't hesitate and tell it Smile

[Image: XW8WlJp.png]

Code:
The reason I posted a pic of my source code is that by actually typing the code yourself, you understand it better instead of just copy-pasting it and running on your browser... An advice for all my fellow beginners :)
Regards,
Exo94
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: [PHP] Detecting A Browser #2
Looks legit to me. Smile Do you plan on releasing this as actual code so we dont have to write all of that? :p

Reply

RE: [PHP] Detecting A Browser #3
Source code sent to LightX... Anyone who wants it can PM me Smile
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: [PHP] Detecting A Browser #4
(01-25-2013, 08:37 AM)LightX Wrote: Looks legit to me. Smile Do you plan on releasing this as actual code so we dont have to write all of that? :p
all in all you really only need like 5 lines from that screenshot. hardly a difficult task and i agree with him about people learning more from typing stuff out themselves lol

Reply

RE: [PHP] Detecting A Browser #5
(01-25-2013, 10:25 AM)Geoff Wrote: all in all you really only need like 5 lines from that screenshot. hardly a difficult task and i agree with him about people learning more from typing stuff out themselves lol
Thanks! Just wanted to explain whats really going on the other side Biggrin
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: [PHP] Detecting A Browser #6
(01-25-2013, 10:53 AM)Ex094 Wrote:
(01-25-2013, 10:25 AM)Geoff Wrote: all in all you really only need like 5 lines from that screenshot. hardly a difficult task and i agree with him about people learning more from typing stuff out themselves lol
Thanks! Just wanted to explain whats really going on the other side Biggrin

Ya i get that. thats good coding practice for when releasing the code to other people. but if someone was actually going to copy/use that code then 90% of the code in that post is really unnecessary lol ie he doesnt need to copy it.

Reply

RE: [PHP] Detecting A Browser #7
Agreed to Geoff. This is a good practise of uploading the pic instead of the written code.
It'll make others learn and understand.
[Image: 2YpkRjy.png]
PM me if you need help.
My pastebin HERE. My URL Shortener HERE.

Reply

RE: [PHP] Detecting A Browser #8
Something wrong there..Try reading about Opera and user agents of it's versions

Reply

RE: [PHP] Detecting A Browser #9
(01-25-2013, 12:25 PM)hackarchives Wrote: Something wrong there..Try reading about Opera and user agents of it's versions
Thats why I included the link to a User Agent site, so that the person can see what the agent contains either it's the same name of the browser or not.. In case of opera it's presto I guess
My Blog: http://www.procurity.wordpress.com
Donations: 1HLjiSbnWMpeQU46eUVCrYdbkrtduX7snG

Reply

RE: [PHP] Detecting A Browser #10
(01-25-2013, 12:31 PM)Ex094 Wrote:
(01-25-2013, 12:25 PM)hackarchives Wrote: Something wrong there..Try reading about Opera and user agents of it's versions
Thats why I included the link to a User Agent site, so that the person can see what the agent contains either it's the same name of the browser or not.. In case of opera it's presto I guess

hmmm..i think you should search some more[about what i said in my previous post]..I won't help you more this time..

Reply