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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.