By retrieving the hardware information, you will certainly show your script identification in hardware. PHP is too high a level to provide such functions (for example, you could not write a device driver in PHP, since there are no necessary software interceptors there).
The methods for obtaining physical fingerprints will be different for each OS and even hardware. A device present on an x86 PC might be called something else (or completely absent) on a PowerPC Mac). On Linux, you can use various bits from / proc, on Windows, you can try to replicate the fingerprints used by Microsoft to activate Windows, etc.
Basically, you open a huge can of worms that has never been too closed for a start. This is software. If someone wants to steal your code, they can and will be. Your defense must be perfect for all eternity, they just need to find one hole to get everything.
source share