Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th April 2010, 21:55
Torchwood Torchwood is offline
Junior Member
 
Join Date: Apr 2010
Location: Sacramento, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Add auto-updates for browscap.ini

New person here... currently using ISPConfig 2, waiting for Rails support for ISPConfig 3.03, and I have a small feature request.

One of the functions in PHP is the get_browser() function, which returns browser capabilities. This relies on a updated browscap.ini file, which is available from http://browsers.garykeith.com/downloads.asp . The browscap file have a header at the beginning that looks like this:
Code:
[GJK_Browscap_Version]
Version=4534
Released=Sat, 10 Apr 2010 01:03:16 -0000
Since we know the version # of the installed browscap, we could check once-per-day against http://updates.browserproject.com/version-number.asp . If the version numbers are different, then grab the updated browscap.ini file and install it.

Why is this important? get_browser() requires the path to the browscap.ini file to be specified in the php.ini browscap directive which is flagged as PHP_INI_SYSTEM. This can only be specified at the system level, not at a user level. And ISP maintains the system-level php.ini file.
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
I need some advice on migrating from PHP4 to PHP5. thinktink Installation/Configuration 3 4th December 2007 21:43
Advice on how to setup Lintrack As A LAN Gateway And An OpenVPN Bridge eddiequek HOWTO-Related Questions 0 12th July 2007 11:38
Transaction error Perfect FC6 setup ACDII HOWTO-Related Questions 1 6th July 2007 15:56
updating with yum igongora Technical 2 21st May 2007 04:11


All times are GMT +2. The time now is 15:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.