Simple PHP Browser sniffer

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tootricky
Advanced
Advanced
Posts: 28
Joined: Tue Dec 07, 2004 4:07 pm

Simple PHP Browser sniffer

Post by tootricky »

Hi,

I have used version 5 of this menu for a year now and it has been brilliant, but I am now working on a new project that requires something different.

I would like to replace the standard NS4 sniffer:

<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
</script>

with a php script that does exactly the same thing. I have searched the boards to no avail and know nothing of PHP at the moment. Could someone please help.

Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I don't really know about php, but theres a zip file for a php/mysql menu and it has a config.php page in it that shows a code for calling the menu files. I don't know if that's what you mean, but here http://support.milonic.com/datamenu/mysqlmenu.zip is the file.

Ruth
tootricky
Advanced
Advanced
Posts: 28
Joined: Tue Dec 07, 2004 4:07 pm

Post by tootricky »

Thanks Ruth,

I think that is what I needed. Now to try to decipher only the bit I need.... wish me luck!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

LUCK! And beyond that I'm totally lost. I know nothing about mysql and even less about php :lol:

Ruth
Post Reply