Skip to content
Advertisement

How is it possible to run an ftp server, using php?

I would like to host az FTP server on: mywebsite.domain/ftpserver.php

The XAMPP server runs on my computer. The php is important, because I would like to authenticate the users using their passwords in the mysql database, and their directory’s name is also stored in the database.

Or if there is a free ftp server, then how could I create ftp users from the php?

Advertisement

Answer

This can not be done. PHP works, almost always, with a webserver, serving HTTP and HTTPS request, not FTP requests.

A second point would be; Why FTP? You can serve files with the HTTP and HTTPS protocol as well. The only limitation is that users cannot use a custom client, they have to use a browser.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement