มันเกิดปัญหานี้หลายรอบแล้วครับให้ ChatGPT แก้โค้ดก็รันไม่ได้ครับในcmd
Could not open input file: src/Start.php
Press any key to continue . . .
ตัวโค้ดครับ
<?php
namespace TeyvatPS
{
// Rest of the code goes here
}
use TeyvatPS\data\ExcelManager;
use TeyvatPS\https\DispatchServer;
use TeyvatPS\network\NetworkServer;
use TeyvatPS\network\protocol\ProtocolDictonary;
use TeyvatPS\utils\Crypto;
use TeyvatPS\utils\Logger;
require_once dirname(__FILE__, 2) . '/vendor/autoload.php';
function run(): void
{
Config::init();
ProtocolDictonary::init();
Crypto::init();
DispatchServer::init();
NetworkServer::init();
ExcelManager::init();
Logger::send(
Logger::LIGHT_PURPLE .
"
" . Logger::BOLD . Logger::GREEN . "TeyvatPS " . Logger::RED
. "

◣_◢) " . Logger::RESET . "
" . Logger::RED . "─────────────────────
" . Logger::GOLD . "✦ " . Logger::BLUE . "Author: " . Logger::WHITE
. "timing#1337
" . Logger::GOLD . "✦ " . Logger::BLUE . "Language: "
. Logger::WHITE . "PHP
" . Logger::RESET,
''
);
}
run();
}
ตัวคำสั้งที่ใช้รัน
@echo off
TITLE Teyvat - Genshin Impact
cd /d %~dp0
set PHP_BINARY=php
if exist bin\php.exe (
set PHP_BINARY=bin\php.exe
)
if "%PHP_BINARY%"=="" (
echo Couldn't find a PHP binary in system PATH or "%~dp0bin"
pause
exit 1
)
%PHP_BINARY% src/Start.php %* || pause
ช่วยให้ php มันรันได้หน่อยครับ
Could not open input file: src/Start.php
Press any key to continue . . .
ตัวโค้ดครับ
<?php
namespace TeyvatPS
{
// Rest of the code goes here
}
use TeyvatPS\data\ExcelManager;
use TeyvatPS\https\DispatchServer;
use TeyvatPS\network\NetworkServer;
use TeyvatPS\network\protocol\ProtocolDictonary;
use TeyvatPS\utils\Crypto;
use TeyvatPS\utils\Logger;
require_once dirname(__FILE__, 2) . '/vendor/autoload.php';
function run(): void
{
Config::init();
ProtocolDictonary::init();
Crypto::init();
DispatchServer::init();
NetworkServer::init();
ExcelManager::init();
Logger::send(
Logger::LIGHT_PURPLE .
"
" . Logger::BOLD . Logger::GREEN . "TeyvatPS " . Logger::RED
. "
" . Logger::RED . "─────────────────────
" . Logger::GOLD . "✦ " . Logger::BLUE . "Author: " . Logger::WHITE
. "timing#1337
" . Logger::GOLD . "✦ " . Logger::BLUE . "Language: "
. Logger::WHITE . "PHP
" . Logger::RESET,
''
);
}
run();
}
ตัวคำสั้งที่ใช้รัน
@echo off
TITLE Teyvat - Genshin Impact
cd /d %~dp0
set PHP_BINARY=php
if exist bin\php.exe (
set PHP_BINARY=bin\php.exe
)
if "%PHP_BINARY%"=="" (
echo Couldn't find a PHP binary in system PATH or "%~dp0bin"
pause
exit 1
)
%PHP_BINARY% src/Start.php %* || pause