Thanks MuhClaren - here's a little explaination of my little script:
My php script checks a visitor's IP address ($_SERVER['REMOTE_ADDR']) - checks if already stored in a MySQL database, if not stores it together with timestamp etc in a new row. After one day the entries will be deleted.
Here's how it looks like, hope it's ok to include the link here?
Until 3.0.14 the script was included in the statistics (bottom in index_body.html of prosilver) with
<-- INCLUDEPHP counter.php -->
and of course php was enabled in the ACP.
I didn't know that super global $_SERVER is no longer allowed and with the upgrade got that error:
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/wxxx/popstop/forum/cache/twig/ff/0b/7323ad60e47acff22900724a2f81.php:20) in /www/htdocs/wxxx/popstop/forum/includes/functions.php on line 2531
Zurück zur Foren-Übersicht
Illegal use of $_SERVER. You must use the request class or request_var() to access input data. Found in /www/htdocs/wxxx/popstop/forum/counter.php on line 38. This error message was generated by deactivated_super_global.
FILE: (not given by php)
LINE: (not given by php)
I'm not special in php and I'm just wondering how I could fix that problem so any help would be much appreciated. TIA