formulahendry / formulahendry/vscode-code-runner

print_r( $_SERVER["SERVER_NAME"]); give an error Notice: Undefined index: SERVER_NAME in C:....\xxx.php on line XX

Open
#609 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

I ran :
print_r( $_SERVER["SERVER_NAME"]);
And this give an error:
Notice: Undefined index: SERVER_NAME in C:....\xxx.php on line XX

vsCode 1.44.2
windows10

I expect that return "localhost" Because i ran this on my computer via VS Code

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.