Answers for "how to application host server ip in php"

PHP
0

get server ip php

$exec = 'ipconfig | findstr /R /C:"IPv4.*"';
exec($exec, $output);
preg_match('/\d+\.\d+\.\d+\.\d+/', $output[0], $matches);
print_r($matches[0]);
Posted by: Guest on February-16-2021
0

how to host a php server

php artisan serve --host your-ip-add --port 8000

// Example with port
php artisan serve --host 192.168.1.001 --port 8000
Posted by: Guest on January-27-2021

Browse Popular Code Answers by Language