This shows you the differences between two versions of the page.
| docu:snipper:program:php_upload_file [2020/08/20 21:14] – created admin | docu:snipper:program:php_upload_file [2020/08/20 21:18] (current) – admin | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | Run the server using php-cli package (php$version-cli) | ||
| + | <code bash> | ||
| + | # install the package (on a Debian based Linux) if needed | ||
| + | apt-get install php7.3-cli --no-install-recommends | ||
| + | |||
| + | # run the server on the same path as the upload.php script | ||
| + | php -S 0.0.0.0: | ||
| + | </ | ||
| + | |||
| + | Now you can access your uploader simple server on | ||
| + | <code bash> | ||
| + | http:// | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | And woola!! | ||