We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
没听说过 vercel 能跑 PHP →_→
Sorry, something went wrong.
可以的,php5-php8都可以
[email protected] - PHP 8.1.x [email protected] - PHP 8.0.x #默认 [email protected] - PHP 7.4.x
vercel.json
{ "functions": { "api/*.php": { "runtime": "[email protected]" } }, "routes": [ { "src": "/(.*)", "dest": "/api/index.php" } ] }
/api/index.php
<?php $file= __DIR__ . '/..'.$_SERVER["PHP_SELF"]; if(file_exists($file)) { return false; } else { require_once __DIR__ . '/../index.php'; } #echo $_SERVER["PHP_SELF"];
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: