mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 21:15:26 +02:00
php: update page and add Dutch translation (#16626)
This commit is contained in:
parent
7830ec9edc
commit
9cfd45f902
2 changed files with 46 additions and 10 deletions
36
pages.nl/common/php.md
Normal file
36
pages.nl/common/php.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# 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}}`
|
|
@ -7,30 +7,30 @@
|
|||
|
||||
`php {{path/to/file}}`
|
||||
|
||||
- Check syntax on (i.e. lint) a PHP script:
|
||||
- Check syntax on (i.e. [l]int) a PHP script:
|
||||
|
||||
`php -l {{path/to/file}}`
|
||||
`php {{[-l|--syntax-check]}} {{path/to/file}}`
|
||||
|
||||
- Run PHP interactively:
|
||||
- Run PHP inter[a]ctively:
|
||||
|
||||
`php -a`
|
||||
`php {{[-a|--interactive]}}`
|
||||
|
||||
- Run PHP code (Notes: Don't use <? ?> tags; escape double quotes with backslash):
|
||||
|
||||
`php -r "{{code}}"`
|
||||
`php {{[-r|--run]}} "{{code}}"`
|
||||
|
||||
- Start a PHP built-in web server in the current directory:
|
||||
- Start a PHP built-in web [S]erver in the current directory:
|
||||
|
||||
`php -S {{host:port}}`
|
||||
`php {{[-S|--server]}} {{host:port}}`
|
||||
|
||||
- List installed PHP extensions:
|
||||
|
||||
`php -m`
|
||||
`php {{[-m|--modules]}}`
|
||||
|
||||
- Display information about the current PHP configuration:
|
||||
|
||||
`php -i`
|
||||
`php {{[-i|--info]}}`
|
||||
|
||||
- Display information about a specific function:
|
||||
|
||||
`php --rf {{function_name}}`
|
||||
`php {{[--rf|--rfunction]}} {{function_name}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue