Start New Discussion within our Web Development Community

hello,

i want to make a script in php that identify the pc. actually i want to make a script like antivirus software which can only install at one pc. if we want to install it on other pc it cant. and also if we install it on same pc after formating complete harddrive it will install, but on any other pc it will not install.

i want to make a script which check that the programme will install only on same pc every time after formatting. but if it is not same pc it will not work.

thanks.

how about this ,getting the computer name
gethostname() try to echo and it will display your computer name

@sainigks

i want to make a script in php that identify the pc.

The only way to identify a pc with php is using a cookie.

if we want to install it on other pc it cant. and also if we install it on same pc after formating complete harddrive it will install, but on any other pc it will not install.

PHP doesn't do that. This question is more suited in the Software Development section.

i want to make a script which check that the programme will install only on same pc every time after formatting. but if it is not same pc it will not work.

PHP doesn't do that either. This question is also more suited in the Software Development section too.

thakns dear
gethostname() work well but after formatting pc it will not work because pc name will be changed or may not. so it cant identify the pc properly.

gethostname() try to echo and it will display your computer name

This will give you the name of the server, not the connected client.

From the manual: "gethostname() gets the standard host name for the local machine."

This article has been dead for over six months. Start a new discussion instead.