This article mainly introduces the use ofdos
command to obtain theIP
address, and also provides the use ofphp
to obtainip
Address method.
As we all know, when a computer queries the local IP address, it usually uses thedos
command
win r
call outdos
Command
Useipconfig/all
to get yourip
address (I will not expose my IP)
But how to get yourIP
address inphp
?
Method one:
Method two:
Method three:
Recommended: "php video tutorial" "php tutorial"
The above is the detailed content of How to get ip address using php. For more information, please follow other related articles on the PHP Chinese website!