This commit is contained in:
cjd
2026-02-05 22:22:10 +08:00
parent fef9fe0c31
commit bf3a2e6971
273 changed files with 30605 additions and 0 deletions

8
web10/tools/php82.ini Normal file
View File

@@ -0,0 +1,8 @@
[PHP]
extension_dir="D:/phpstudy_pro/Extensions/php/php8.2.9nts/ext"
extension=openssl
extension=mbstring
extension=fileinfo
extension=curl
extension=zip
extension=pdo_mysql

24
web10/tools/php82.ps1 Normal file
View File

@@ -0,0 +1,24 @@
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Args
)
$php = "D:/phpstudy_pro/Extensions/php/php8.2.9nts/php.exe"
$extDir = "D:/phpstudy_pro/Extensions/php/php8.2.9nts/ext"
$iniPath = Join-Path $PSScriptRoot "php82.ini"
$env:PHPRC = $iniPath
$env:PHP_INI_SCAN_DIR = ""
$phpArgs = @(
"-n",
"-d", "extension_dir=$extDir",
"-d", "extension=openssl",
"-d", "extension=mbstring",
"-d", "extension=fileinfo",
"-d", "extension=curl",
"-d", "extension=zip",
"-d", "extension=pdo_mysql"
)
& $php @phpArgs @Args
exit $LASTEXITCODE

12
web10/tools/serve.ps1 Normal file
View File

@@ -0,0 +1,12 @@
param(
[string]$HostAddress = "127.0.0.1",
[int]$Port = 8000
)
$root = Split-Path -Parent $PSScriptRoot
$server = Join-Path $root "server.php"
$public = Join-Path $root "public"
$addr = "$HostAddress`:$Port"
& "$PSScriptRoot/php82.ps1" "-S" $addr "-t" $public $server
exit $LASTEXITCODE