Share files using python or php Web Server

Written by
Date: 2010-09-14 10:36:30 00:00

If you want to share a file from your Linux with other users, the easiest way to do that is:

Using Python and this command.

python -m SimpleHTTPServer

You can also use the PHP embedded server.

php -S http://localhost:4000

You can change the port php is going to use, you need to have python or php installed of course.