![]() I said that when any program ( like php etc) run over localhost address then it is not visible over public ip. In php, they say to use 0.0.0.0 for public and 127.0.0.1 for local You give me a Good reason for this i Appreciate itīut your reason in only valid over php. download and install xampp or any alternative that runs an Apache server on local machine should do the trick. ![]() You can also host your PHP application on Azure App Service. If you publish your PHP application on a public network, we recommend hosting it with Apache or Nginx and controlling the communication with a virtual network or firewall. connect a tunnel to your web application running on port 8080 now with. Note: If you get an error that 'php' is not recognized, you likely will need to add it to your path manually. If you want to keep your Azure virtual network private, don't give it a public IP address. Running your code on localhost Type the command php -S localhost:8000 to run your site on port 8000. That’s how all PHP websites work The other way is to run PHP scripts on the command line, and it doesn't require you to set up a web server. The built-in Web Server should not be used on a public network.įrom here, I will talk about what you can do with Azure. The preferred way of running PHP files is within a web server like Apache, Nginx, or IISthis allows you to run PHP scripts from your browser. (I quess i heve to make the task that wiil open the php file through the command line or just executes the php) When i run it from a browser everything goes well. You should not use it on public networks. 1 I actually want to execute a php (sorry that i said 'page') that it does http request with responses,once per day automatically. ![]() The PHP documentation also notes the following: This is a PHP built-in web server specification, not an Azure issue. In this tutorial, I will show you how you can get your website running on localhost:8000 or any other port on your computer so you can run server-side code. If 0.0.0.0 is specified, it can be accessed from any remote server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |