moazzamabbas / phpbrowscap

Automatically exported from code.google.com/p/phpbrowscap
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Bad datetime format #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by n...@natesilva.com on 26 Aug 2008 at 4:36

GoogleCodeExporter commented 8 years ago
It looks like Gary Keith's web site may have changed, and now Browscap isn't 
able to parse some of the data. 
When I access Browscap I get an error like the following:

Warning: file_get_contents(http://browsers.garykeith.com/version-date.asp) 
[function.file-get-contents]: 
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in 
/srv/www/Browscap/Browscap.php 
on line 576

Fatal error: Uncaught exception 'Browscap_Exception' with message 'Bad datetime 
format from 
http://browsers.garykeith.com/version-date.asp' in 
/srv/www/Browscap/Browscap.php:474 Stack trace: #0 
/srv/www/Browscap/Browscap.php(425): Browscap->_getRemoteMTime() #1 
/srv/www/Browscap/Browscap.php(306): 
Browscap->_getRemoteIniFile('http://browsers...', 
'/srv/www/suppor...') #2 /srv/www/Browscap/Browscap.php(228): 
Browscap->updateCache() #3 
/srv/www/pages/ipinfo/index.php(17): Browscap->getBrowser() #4 {main} thrown in 
/srv/www/Browscap/Browscap.php on line 474

Original comment by n...@natesilva.com on 26 Aug 2008 at 4:37

GoogleCodeExporter commented 8 years ago
Gary changed the url of the version-date.asp file, the new version of the class 
includes the fix for this problem, 
download it and you get your system working... ;)

Original comment by st.jonat...@gmail.com on 26 Aug 2008 at 6:05

GoogleCodeExporter commented 8 years ago
Confirmed working. Thanks!

Original comment by n...@natesilva.com on 26 Aug 2008 at 6:18