Why PHP built-in web server should not be used on a public network? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I've been reading about PHP document in https://www.php.net/manual/en/features.commandline.webserver.php and was wondering why built-in web server should not be used on a public network?
Is it because of the security issues?
If yes, is there any example or details about this?

From the documentation:
The web server runs only one single-threaded process, so PHP
applications will stall if a request is blocked.
Also, it won't restart by itself if for a reason or another the process crashes.
In a pinch, it's a good tool, but it's definitely not be used on a public network.

Related

monitoring Requests in php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a project in PHP and it works as a REStFull service, an android application constantly request some functions, I want to know, from the server side, How could I see all the petitions?
the PHP project is in a hosting.
If you are after activity log, your web server can provide that (Apache or Nginx) for example, otherwise, you will have to implement your own logging strategy in PHP (https://github.com/Seldaek/monolog can help you)
If you want to go further, you can use logstash alongside Kibana and Elastic to get you a nice representation of your service's behaviour.
https://www.elastic.co/products/logstash
If logging your Rest service is very costly in term of performance, www.gearman.org is a very good option to easily bring some asynchronousity in your application.

Access client's SQL Database with PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was thinking is there a method to gain access to a client PC's SQL database? I am creating a web portal for our LAN clients and I will need to manipulate data on the client's database.
No. you cannot do this with PHP. Php runs on the server.
You cannot do this with javascript in the browser as it is not allowed access to the client pc.
You may be able to write a chrome or firefox plugin that will have access to the host pc and then write code to interact with it.
Or just write an application for your clients to install that comunicates with your app on the php server.

Host PHP site on Dropbox [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I use DB on regular basis to host static sites for clients so that it makes easy to change anything and ask to client check. I use 'Public' folder to do that. Colloboration with client becomes super fast and easy.
Now I researched a lot on google on hosting php site there. But didn't found anything. I need to upload small changes to server to show client and the process is again and again.
What you guys recommend as a good solution?
Set up some automatic deployment to a server that your client can access. Use version control for your changes. When you merge into a specific branch, your script can automatically do the deployment for you.

Security for PHP code on local server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am deploying my php app on a local server for my customer. I will be using wamp to run the app. How can I secure my php code from reuse?
You can install zend into your apache and use zend to encode PHP and obfuscate your application to Protect your code.
You can read here too:
http://www.zend.com/en/products/guard

Is it possible to check specific drivers installed or not in a client computer through the php programming [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to check specific drivers installed or not in a client's computer through the PHP, Is it possible with the PHP programming?
If it's possible, How can I do?
There is no general interface for this indeed, as PHP is a server side language, and you want to find out things on the client side. The only possibility is to either have a client side installable extension or alter the drive to expose itself through some kind of browser interface if you have control over the driver.

Categories