[GH-ISSUE #1253] on Nginx web server, $_SERVER['PHP_SELF'] is empty, Please check. #805

Open
opened 2026-03-02 16:01:32 +03:00 by kerem · 0 comments
Owner

Originally created by @chonghai on GitHub (Nov 17, 2024).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1253

My web server: nginx 1.24;
PHP : 8.3
And I Check $_SERVER['PHP_SELF'] is EMPTY!
so when i login , it will be redirected to the website home.

I change "$_SERVER['PHP_SELF'] " to "$_SERVER['SCRIPT_NAME']", and it runs OK.

That's it.

Originally created by @chonghai on GitHub (Nov 17, 2024). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1253 My web server: nginx 1.24; PHP : 8.3 And I Check $_SERVER['PHP_SELF'] is EMPTY! so when i login , it will be redirected to the website home. I change "$_SERVER['PHP_SELF'] " to "$_SERVER['SCRIPT_NAME']", and it runs OK. That's it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#805
No description provided.