Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active February 23, 2025 04:26
Show Gist options
  • Save dewomser/c6719f0c0ad2bcbc1a97c8490398ee27 to your computer and use it in GitHub Desktop.
Save dewomser/c6719f0c0ad2bcbc1a97c8490398ee27 to your computer and use it in GitHub Desktop.
Information über die PHP-Einstellung

phpinfo mit Bash und PHP

Information über die PHP-Einstellung bekommt man, wenn man die 3 Zeilen in eine Datei schreibt und dann mit dem Browser anguckt.

<?php
phpinfo();
 ?>

Oder einfach dieses Kommando für #Bash

php -r 'phpinfo();'

oder noch einfacher

php -i

Vorteil beim Shellkommando. Man kann greppen

php -i | grep opcache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment