Debugger : $_SERVER['DOCUMENT_ROOT'] |
Site Admin
|
SRV web server "root" is tightly bound to the project root. What you changed make sense for the cases when you run scripts without any projects. For the rest cases, project root is taken.
If your project is designed so that its root is avove the web root, I'd recommend to use Apache or IIS instead of SRV. |
||||||||||||
_________________ The PHP IDE team |
|
hi dmitri,
is this a change? cause in the previous version i was using the document root was set as the SRV web root. |
||||||||||||
|
Site Admin
|
Right. It is a change we did in v.4.6.
It uses own Root directory setting only if no projects are selected. Otherwise it always takes project's root. |
||||||||||||
_________________ The PHP IDE team |
|
Hi Dmitri,
is it possible to make it optional? we like the srv for debugging but now we are stuck to older versions of phped. |
||||||||||||
|
Guru master
|
Hey MacVato,
There's a great function in PHP that is called a prepend file. If you set the entry auto_prepend_file = <some path and filename> in the php.ini from PhpEd, it will execute this php file first before starting your real code. All you need to do is put one line of code in there:
That will fix your issues. |
||||||||||||||
|
Site Admin
|
probably document_root is not the only `thing`
seems he's looking for a way to run his script with an url that contains path different than the project's relative path. |
||||||||||||
_________________ The PHP IDE team |
|
yeah i need most of the $_SERVER variables,
so is it possible to make it an option for the SRV so that all variables are based on the chosen root instead of the project root? |
||||||||||||
|
Debugger : $_SERVER['DOCUMENT_ROOT'] |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by