...

View Full Version : Probably and easy HEADER question



mothra
10-03-2003, 07:28 PM
I confess I have not researched this very well...

How do I specify the full path to a file I want to point to with a header call? I tried using the full http://blah blah blah uri but this doesn't work well with development testing because I cannot always be connected to the www. There must be another way to do this, right?

Thanks,
M.

Nightfire
10-03-2003, 07:49 PM
Maybe something like
header("Location :".$_SERVER['HTTP_ROOT']."/blah");

or it's SERVER_ROOT instead of HTTP_ROOT, can't remember now

missing-score
10-04-2003, 12:47 AM
isnt it $_SERVER['DOCUMENT_ROOT']?

Nightfire
10-04-2003, 12:48 AM
probably lol I can't remember anymore

missing-score
10-04-2003, 12:48 AM
yeh, it is, just checked.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum