Problema Php aiutoooooooooooooo

di il
4 risposte

Problema Php aiutoooooooooooooo

A che cosa è dovuto questo errore? Il file è un game server scritto in php

C:\xampp\php>php -f C:\xampp\htdocs\Server\server.php 0 [Server] ? L.U.C.S. (Version): 8;13;11;3 PHP
Warning: opendir(network/login,network/login): The system cannot find the p ath specified. (code: 3) in C:\xampp\htdocs\Server\network\packets.php on line 1 5

Warning: opendir(network/login,network/login): The system cannot find the path s pecified. (code: 3) in C:\xampp\htdocs\Server\network\packets.php on line 15 PHP

Warning: opendir(network/login): failed to open dir: No such file or direct ory in C:\xampp\htdocs\Server\network\packets.php on line 15 Warning: opendir(network/login): failed to open dir: No such file or directory i n C:\xampp\htdocs\Server\network\packets.php on line 15

PHP Warning: readdir() expects parameter 1 to be resource, boolean given in C:\ xampp\htdocs\Server\network\packets.php on line 16 Warning: readdir() expects parameter 1 to be resource, boolean given in C:\xampp \htdocs\Server\network\packets.php on line 16

PHP Warning: closedir() expects parameter 1 to be resource, boolean given in C: \xampp\htdocs\Server\network\packets.php on line 23 Warning: closedir() expects parameter 1 to be resource, boolean given in C:\xamp p\htdocs\Server\network\packets.php on line 23 PHP Warning: opendir(network/game,network/game): The system cannot find the pat h specified. (code: 3) in C:\xampp\htdocs\Server\network\packets.php on line 83

Warning: opendir(network/game,network/game): The system cannot find the path spe cified. (code: 3) in C:\xampp\htdocs\Server\network\packets.php on line 83

PHP Warning: opendir(network/game): failed to open dir: No such file or directo ry in C:\xampp\htdocs\Server\network\packets.php on line 83 Warning: opendir(network/game): failed to open dir: No such file or directory in C:\xampp\htdocs\Server\network\packets.php on line 83

PHP Warning: readdir() expects parameter 1 to be resource, boolean given in C:\ xampp\htdocs\Server\network\packets.php on line 84 Warning: readdir() expects parameter 1 to be resource, boolean given in C:\xampp \htdocs\Server\network\packets.php on line 84

PHP Warning: closedir() expects parameter 1 to be resource, boolean given in C: \xampp\htdocs\Server\network\packets.php on line 91 Warning: closedir() expects parameter 1 to be resource, boolean given in C:\xamp p\htdocs\Server\network\packets.php on line 91

PHP Warning: opendir(network/game/handlers,network/game/handlers): The system c annot find the path specified. (code: 3) in C:\xampp\htdocs\Server\network\packe ts.php on line 93 Warning: opendir(network/game/handlers,network/game/handlers): The system cannot find the path specified. (code: 3) in C:\xampp\htdocs\Server\network\packets.php on line 93

PHP Warning: opendir(network/game/handlers): failed to open dir: No such file o r directory in C:\xampp\htdocs\Server\network\packets.php on line 93 Warning: opendir(network/game/handlers): failed to open dir: No such file or dir ectory in C:\xampp\htdocs\Server\network\packets.php on line 93

PHP Warning: readdir() expects parameter 1 to be resource, boolean given in C:\ xampp\htdocs\Server\network\packets.php on line 94 Warning: readdir() expects parameter 1 to be resource, boolean given in C:\xampp \htdocs\Server\network\packets.php on line 94

PHP Warning: closedir() expects parameter 1 to be resource, boolean given in C: \xampp\htdocs\Server\network\packets.php on line 101 Warning: closedir() expects parameter 1 to be resource, boolean given in C:\xamp p\htdocs\Server\network\packets.php on line 101

10.01 18:07:40 [MySQL] ? Successfully connected to localhost as 'root'

PHP Warning: file_get_contents(data/itemmanager/items.list): failed to open str eam: No such file or directory in C:\xampp\htdocs\Server\data\itemmanager\itemmanager.php on line 26

Warning: file_get_contents(data/itemmanager/items.list): failed to open stream: No such file or directory in C:\xampp\htdocs\Server\data\itemmanager\itemmanager.php on line 26

PHP Warning: file_get_contents(data/weaponmanager/weaponIDs.dat): failed to ope n stream: No such file or directory in C:\xampp\htdocs\Server\data\weaponmanager \weaponmanager.php on line 99
Warning: file_get_contents(data/weaponmanager/weaponIDs.dat): failed to open str eam: No such file or directory in C:\xampp\htdocs\Server\data\weaponmanager\weap onmanager.php on line 99

PHP Warning: file_get_contents(data/weaponmanager/lookupWeapons.dat): failed to open stream: No such file or directory in C:\xampp\htdocs\Server\data\weaponman ager\weaponmanager.php on line 100

Warning: file_get_contents(data/weaponmanager/lookupWeapons.dat): failed to open stream: No such file or directory in C:\xampp\htdocs\Server\data\weaponmanager\ weaponmanager.php on line 100 10.01 18:07:40 [Inventory] ? Successfully loaded default equipment 10.01 18:07:40 [Server] ? (TCP-)Server successfully started on 94.23.145.252:533 0 10.01 18:07:40 [Server] ? (TCP-)Server successfully started on 94.23.145.252:534 0 10.01 18:07:40 [Server] ? (TCP-)Server successfully started on 94.23.145.252:476 11

4 Risposte

  • Re: Problema Php aiutoooooooooooooo

    L'errore "The system cannot find the p ath specified "mi sembra abbastanza chiaro. Lo script cerca di accedere a un file che non trova... Hai controlato il percorso?
  • Re: Problema Php aiutoooooooooooooo

    Edit
  • Re: Problema Php aiutoooooooooooooo

    Toki ha scritto:


    L'errore "The system cannot find the p ath specified "mi sembra abbastanza chiaro. Lo script cerca di accedere a un file che non trova... Hai controlato il percorso?
    Ma la directory esiste ti invio invio la stringa corrispondente all'errore
    Warning: opendir(network/login,network/login): The system cannot find the p ath specified. (code: 3) in C:\xampp\htdocs\Server\network\packets.php on line 15

    codice PHP:

    $handle = opendir("network/login");
    while($file = readdir($handle))
    {
    if(!is_dir($file))
    {
    include("network/login/".$file);
    }
    }
    closedir($handle);
  • Re: Problema Php aiutoooooooooooooo

    Ma la cartella si trova allo stesso livello del file che esegue il codice?

    esempio:

    network\packets.php --> file che esegue il codice
    network\network\login --> cartella da aprire

    Se devi aprire la cartella login , la quale si trova allo stesso livello del file chiamante, devi omettere la directory network
Devi accedere o registrarti per scrivere nel forum
4 risposte