File: README.md

package info (click to toggle)
php-uploadprogress 2.0.2%2B1.1.4-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 552 kB
  • sloc: ansic: 952; xml: 624; php: 61; makefile: 1
file content (36 lines) | stat: -rw-r--r-- 1,263 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
# uploadprogress Example

To run this example, you will need:

* [Apache httpd][] with [mod_php][] (other web servers and [PHP-FPM][] are not
  yet supported)
* PHP 5.4+ 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), though Docker
is not required.

## 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 httpd]: 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