Jump to content

pvp Environment


poe

Recommended Posts

is there a way to see the 'name' of my computer?

 

what i mean is, i ran phpinfo() while working on localhost and see under environment it lists USERDOMAIN = 'homecomputer', which i see is the 'name' of this machine i am using?

 

if i run phpinfo() on the wifes laptop while working in localhost USERDOMAIN = 'mylaptop'

 

is there a way in php to go:

if (USERDOMAIN = 'homecomputer')
{ 
   $path = "c:/easyphp/www/poe/myweb/";
} else {
   $path = "c:/easyphp/www/fromhome/";
}

 

that way, when i copy my entire www directory to my usb key to bring home i dont need to keep commenting out the path when i copy files to bring from home to work and visa versa.

 

thanks

chris

Link to comment
https://forums.phpfreaks.com/topic/75720-pvp-environment/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.