[Lazarus] Fwd: Get the htdocs foldes from server host

Leonardo M. Ramé l.rame at griensu.com
Thu Jun 9 20:52:20 CEST 2011


On 2011-06-09 15:43:33 -0300, silvioprog wrote:
> Hi.
> 
> It's possible to get the htdocs foldes from server host via a app CGI?
> 
> Eg., my htdocs is C:\xampp\htdocs, and my server host is http://localhost
> 
> Thx.
> 
> ps. Sorry for my bad english. ^^'
> 

It should be possible, in CGI there's an environment variable called
DOCUMENT_ROOT that contains the path you are asking for:

http://www.cgi101.com/class/ch3/text.html
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list