File: README.md

package info (click to toggle)
php-uploadprogress 2.0.2%2B%2B-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: ansic: 429; xml: 335; php: 45; makefile: 1
file content (37 lines) | stat: -rw-r--r-- 1,324 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# uploadprogress Example

To run this example, you will need:

* [Apache HTTP Server][] using [mod_php][], or [PHP-FPM][] used with
  [Apache HTTP Server][], [nginx][], or [Caddy][].
* PHP >= 7.2 with the [fileinfo][] extension

The easiest way to run this example is by using [Docker][] with the provided
`docker-compose.yml` file (which includes all the requirements).

## Using docker-compose

To run the Docker image, open a terminal window, change to this examples
directory (i.e. `cd /path/to/examples`), and enter the following command. It may
take a few minutes the first time you enter this, since it will build the image
for you and then run it.

```
docker-compose up
```

After it starts, open a web browser and go to <http://localhost:8080> to run the
example. Follow the instructions on the page, and read the code in this
directory for a better understanding of what's going on.

To stop `docker-compose`, press `Ctrl`-`C` in your terminal window, and then
enter `docker-compose rm` to remove the container that was created.


[docker]: https://www.docker.com
[Apache HTTP Server]: https://httpd.apache.org
[mod_php]: https://www.php.net/manual/en/install.unix.apache2.php
[php-fpm]: https://www.php.net/fpm
[fileinfo]: https://www.php.net/fileinfo
[nginx]: https://nginx.org
[caddy]: https://caddyserver.com