Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

use of $_SERVER['DOCUMENT_ROOT'].

 
   Database Forums (Home) -> PHP RSS
Next:  Looking for a search engine that search a mysql d..  
Author Message
Chris

External


Since: May 09, 2006
Posts: 1



(Msg. 1) Posted: Tue May 09, 2006 12:06 pm
Post subject: use of $_SERVER['DOCUMENT_ROOT'].
Archived from groups: comp>lang>php (more info?)

I'm working on a large intranet group site with a lot of pages, file types,
folders, subfolders, etc. I am using the include ('../includes/file.php') ,
but I would like to have a single snippet that will work for all .php/.html
pages in all subfolders. I have seen the $_SERVER['DOCUMENT_ROOT']
indicated as a way to access the root of the website without using ../ for
each folder you have to pass up through. However, I cannot get this to work
for me. I've seen recommendations for it's use in FAQs, etc. online, they
all seem to be a little bit different, but none of the formats (assign to a
variable, etc.) work for me. We're using PHP 4.3.2

Can someone give me some guidance on the use of this?

Thanks,
Chris

 >> Stay informed about: use of $_SERVER['DOCUMENT_ROOT']. 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 1367



(Msg. 2) Posted: Tue May 09, 2006 3:22 pm
Post subject: Re: use of $_SERVER['DOCUMENT_ROOT']. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chris wrote:
> I'm working on a large intranet group site with a lot of pages, file types,
> folders, subfolders, etc. I am using the include ('../includes/file.php') ,
> but I would like to have a single snippet that will work for all .php/.html
> pages in all subfolders. I have seen the $_SERVER['DOCUMENT_ROOT']
> indicated as a way to access the root of the website without using ../ for
> each folder you have to pass up through. However, I cannot get this to work
> for me. I've seen recommendations for it's use in FAQs, etc. online, they
> all seem to be a little bit different, but none of the formats (assign to a
> variable, etc.) work for me. We're using PHP 4.3.2
>
> Can someone give me some guidance on the use of this?
>
> Thanks,
> Chris
>
>
>

Chris,

What webserver are you using?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex DeleteThis @attglobal.net
==================

 >> Stay informed about: use of $_SERVER['DOCUMENT_ROOT']. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
$_server[php_self] - hi all i'm having issues with this returned function. I can get it to delete a database but i really want it to grab the stateselect extention and grab all the cities related to that state. I wanted to contain this on one page instead of going over..

PHP_SELF, $_SERVER, etc - Hello news group, This is a dumb question. Sorry. I would like to pass the name of the "page", along with some $_REQUEST variables. I used the $_REQUEST to send and image name (with path) to a page that displays the image referred to in the...

$_SERVER variables under IIS6 - Why is it that IIS6 does not provide all the $_SERVER variables, otherwise available underApache ? Examples being, SERVER_ADDR, SERVER_PORT ... Is there any way to declare server variables under IIS ? Thanks

$_SERVER['PHP_SELF'] Question - I am attempting to use the below Select Form Element to allow users to change the category of data being viewed in a subsequent SQL statement. My problem is, from where I am at, what is my next step to be able to do an "if then else" loop ba...

Simple question?? PHP..ODBC..and...dBASE - Ok this may be a dumb question to some but for the first time this evening I have to access dBASE file through ODBC.. I'm trying to do simple queries of SELECT * FROM ??? however I can't for the life of me figure out what to put in place of the ???. Any....
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]