DOCUMENT_ROOT default settings.

General discussion forum for the Zend Server

DOCUMENT_ROOT default settings.

Postby sepoto on Fri Feb 22, 2013 6:45 am

C:\Program Files (x86)\Zend\Apache2\htdocs\sample\documentroot.php

http://localhost:65001/sample/documentroot.php

<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>

Output:
C:/Program Files (x86)/Zend/Apache2/htdocs


What I really want DOCUMENT_ROOT to be when I run a file from that location is:

C:\Program Files (x86)\Zend\Apache2\htdocs\sample

-----------------------------------------------------------------------------------------------------

Is there some way I can get that out of Zend Server 6? My application just can't run any other way and I don't really want to start modifying code to migrate from one server to another....


Thanks in advance !!! :)
sepoto
 
Posts: 14
Joined: Fri Dec 17, 2010 1:21 am

Re: DOCUMENT_ROOT default settings.

Postby sepoto on Sat Feb 23, 2013 12:47 am

I guess this is the correct output. I had a database problem that was unrelated to this property actually... Thanks anyway...
sepoto
 
Posts: 14
Joined: Fri Dec 17, 2010 1:21 am


Return to Zend Server

Who is online

Users browsing this forum: No registered users and 8 guests