Giter Site home page Giter Site logo

really-simple-traffic-logger's Issues

how display table?

The counter may be displayed or not. See the configs below.?
i open stl.php and nothing ?

Issue after data loss

I recently experienced partial data loss on my server and couldn't pull data from a backup so I had to reinstall really simple traffic logger. I reinstalled from scratch and I'm getting this from files not in root

[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_put_contents(stats/data/access_log.csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 226
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file(stats/data/access_log.csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 233
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_put_contents(stats/data/tally.txt): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 234
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_get_contents(stats/data/access_log.csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 235
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_put_contents(stats/data/cy_archive[2019-01-15].csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 236
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_put_contents(stats/data/cy_archive[2019-01-15].csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 237
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_put_contents(stats/data/access_log.csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 238
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file_put_contents(stats/data/access_log.csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 241
[15-Jan-2019 18:17:03 UTC] PHP Warning:  file(stats/data/access_log.csv): failed to open stream: No such file or directory in /public_html/example.com/stats/stl.php on line 270

I've gone as far as to include like so which hasn't made a difference. From the error message above, I didn't think it would since it seems the server is hitting stats/stl.php, but just in case... :

<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]);    
include "$root/stats/stl.php";
?>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.