How to overwrite php default/builtin functions like gethostname(), die() etc..?
if we call a php function gethostname like echo gethostname();
it will return localhost or whatever the host of the machine is. Instead of that, I want to pass hostname as host1.
I want to pass a custom host name whenever gethostname is called.