Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the PHP code for file location

Posted on 2007-11-22
6
Medium Priority
?
1,439 Views
Last Modified: 2010-04-21
What is the php code to find where the file is located at on linux? like you know $_SERVER['location'];
0
Comment
Question by:fapathy
6 Comments
 
LVL 2

Accepted Solution

by:
HiTechFail earned 2000 total points
ID: 20336773
Document_Root, not location.

$_SERVER['DOCUMET_ROOT'];
0
 

Author Closing Comment

by:fapathy
ID: 31410617
Thanks!
0
 
LVL 21

Expert Comment

by:nizsmo
ID: 20336774
are you looking for PHP_SELF?

echo $_SERVER["PHP_SELF"];
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 2

Expert Comment

by:HiTechFail
ID: 20336789
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
 
LVL 20

Expert Comment

by:steelseth12
ID: 20336862
Reported for points passing . Have a nice day.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20336868
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question