Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Documentation, API URL #4

@xdpirate

Description

@xdpirate

Hi, I attempted to run this, but to no avail.

Upon cloning the repo and opening index.php, one is presented with a blank page.

Adding

error_reporting(E_ALL);
ini_set("display_errors", 1);

reveals the issue:

Fatal error: Uncaught ValueError: Path cannot be empty in /var/www/html/RPCN-Player-Count-Viewer/index.php:28 Stack trace: #0 /var/www/html/RPCN-Player-Count-Viewer/index.php(28): file_get_contents() #1 {main} thrown in /var/www/html/RPCN-Player-Count-Viewer/index.php on line 28

Having to supply a URL to an API isn't documented in the readme.

Additionally, this API URL seems to be nowhere to be found. A web search for "rpcn api" or "rpcn api url" yields no relevant results.

Using np.rpcs3.net, as mentioned here, yields a permission error:

Warning: file_put_contents(/var/www/html/RPCN-Player-Count-Viewer/log.txt): Failed to open stream: Permission denied in /var/www/html/RPCN-Player-Count-Viewer/index.php on line 12
Error: Unable to connect to API. Check log for details.

What's going on here? What URL is expected in the $api_url variable? Why isn't it prefilled?

My environment:

$ php --version
PHP 8.3.14 (cli) (built: Nov 25 2024 18:07:16) (NTS)

$ apache2 -v
Server version: Apache/2.4.52 (Ubuntu)
Server built:   2024-07-17T18:57:26

$ uname -a
Linux LPC 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov  6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions