Solved

What is the PHP code for file location

Posted on 2007-11-22
6
1,410 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now