I'm running the PHP 5.4 built-in web server on my desktop PC. I can access my webpage on that same PC, but I was hoping I could access the page on my tablet as well.

Is there any way I can open it up so I can access my page anywhere on my home network?

有帮助吗?

解决方案

According to this answer you should be able to make PHP listen on all interfaces using a command-line parameter :

For Windows :

C:/php/php.exe -S 0.0.0.0:80

or, for GNU/Linux :

/usr/bin/php -S 0.0.0.0:80
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top