mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-05 01:35:25 +02:00
36 lines
789 B
Markdown
36 lines
789 B
Markdown
# php
|
|
|
|
> PHP command-line interface.
|
|
> Meer informatie: <https://php.net>.
|
|
|
|
- Parse en voer een PHP-script uit:
|
|
|
|
`php {{pad/naar/bestand}}`
|
|
|
|
- Controleer de syntax van (d.w.z. [l]int) een PHP-script:
|
|
|
|
`php {{[-l|--syntax-check]}} {{pad/naar/bestand}}`
|
|
|
|
- Voer PHP inter[a]ctief uit:
|
|
|
|
`php {{[-a|--interactive]}}`
|
|
|
|
- Voer PHP-code uit (Opmerkingen: Gebruik geen <? ?> tags; escape dubbele aanhalingstekens met backslash):
|
|
|
|
`php {{[-r|--run]}} "{{code}}"`
|
|
|
|
- Start een PHP ingebouwde web[S]erver in de huidige map:
|
|
|
|
`php {{[-S|--server]}} {{host:poort}}`
|
|
|
|
- Toon geïnstalleerde PHP-extensies:
|
|
|
|
`php {{[-m|--modules]}}`
|
|
|
|
- Toon informatie over de huidige PHP-configuratie:
|
|
|
|
`php {{[-i|--info]}}`
|
|
|
|
- Toon informatie over een specifieke functie:
|
|
|
|
`php {{[--rf|--rfunction]}} {{functie_naam}}`
|