• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1443
  • Last Modified:

What is the PHP code for file location

What is the php code to find where the file is located at on linux? like you know $_SERVER['location'];
0
fapathy
Asked:
fapathy
1 Solution
 
HiTechFailCommented:
Document_Root, not location.

$_SERVER['DOCUMET_ROOT'];
0
 
fapathyAuthor Commented:
Thanks!
0
 
nizsmoDeveloperCommented:
are you looking for PHP_SELF?

echo $_SERVER["PHP_SELF"];
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
HiTechFailCommented:
On Linux, meaning where the file is on the operating system.

EG: \home\root\www\file.php

Document_Root would display current location like above.
0
 
steelseth12Commented:
Reported for points passing . Have a nice day.
0
 
Computer101Commented:
HiTech and fapathy,

Seems these accounts both come from the same place, and it seems that it is mis appropriation of the point system.

Can you please explain what you are doing?

Thanks

Computer101
EE Admin
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now