Solved

What is the PHP code for file location

Posted on 2007-11-22
6
1,415 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 500 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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

772 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