|  | 
|  | Environment variables in SRV local web server |  | 
|  | 
|  |  | 
| Guru master 
   |  | 
 The local SRV is very limited in functionality (basically just enough to allow debugging). I don't think it actually has support for environment variables.
 Might I suggest adding a wrapper function around the code that returns the environment variable and in which you detect whether you are running remote or locally? Perhaps you can use $_SERVER [ 'SERVER_ADDR' ] ? If it's present and set to ip X you're running on apache. If it's set to ip Y it's locally and then you return the value from an array or hardcoded. Assuming the $_SERVER array even contains IPs on SRV  | |||||||||||
| 
 | |||||||||||||
|  | 
|  |  | 
| Site Admin 
   |  | 
 SRV server obtains all the environment variables from the system. So if you have a variable set in the system environment variables, you'll see it in the php running under SRV too. (don't forget to exit and re-run SRV after you change the system environment).
 After all you can install local Apache and work with it. See NuSphere TechPlatform (free) product. | |||||||||||
| _________________ The PHP IDE team 
 | |||||||||||||
|  | 
|  |  | 
| 
   |  | 
 Thanks for the proposed workaround, Blizz. I actually had a workaround, but want to work with environment variables in my live system, so really want to be able to test and debug using environment variables also.
 Dmitri's solution gives me what I need. Thanks to both of you. Daniel | |||||||||||
| 
 | |||||||||||||
|  | 
|  | Environment variables in SRV local web server |  | 
| 
 | ||
|  | 
|   | 
	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
 


 RSS2 Feed
RSS2 Feed Posted: Sun Jan 13, 2008 9:33 am
 Posted: Sun Jan 13, 2008 9:33 am





