i'm fairly new to PHP and MySQL (please be gentle!), and I want to connect to my server so I can make tests by using
$con=mysqli_connect("address","user","password","databaseName");
I can't for the life of me figure out the IP address to use! I'm using Filezilla for FTP and google says you can't find it from there, I also tried the backend cPanel but didn't find it anywhere. How is it done? I guess it can't be too hard... right?
$_SERVER['SERVER_ADDR']
是您要查看的官方网站 $_SERVER
所有好东西。
Using localhost works! Thanks to everyone for the (super fast) response! Victory's $_SERVER response was also very useful!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.