Diese Seite (Version-1) wurde zuletzt am 24-Dez.-2020 15:46 von Administrator geändert.

Du bist nicht autorisiert, diese Seite umzubenennen.

Du bist nicht autorisiert, diese Seite zu löschen.

Versionsgeschichte der Seite

Version Zuletzt geändert Größe Autor Änderungen Kommentar

Links

Eingehende Links Ausgehende Links

Versionsunterschiede

Unterschiede zwischen Version und .

Zeile 1: 41 Zeilen hinzugefügt.
[{ALLOW view All}]
[{ALLOW edit Authenticated}]
![PHP Windows|https://www.php.net/manual/de/install.windows.php]
!Installation (24.12.2020)
# [Download|https://windows.php.net/download] latest version of x64, Thread Safe, Zip (php-8.0.0-Win32-vs16-x64.zip)
# Unzip somewhere
# add module to Apache at C:\Apache24\conf\httpd.conf
{{{
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
LoadModule php_module "G:/lang/Apache/php/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "G:/lang/Apache/php"
}}}
! Check version via Apache
Create C:\Apache24\htdocs\info.php
{{{
<?php phpinfo(); ?>
}}}
and open [http://localhost/info.php]
! Execute Commands
Generelly you embed PHP in web pages and execute it within the web server (mainly Apache).\\
The [CLI SAPI|https://www.php.net/manual/en/features.commandline.usage.php] enables execution directly.\\
command line, use G:\lang\Apache\php.exe
{{{
php -h = help
php -i = info
php -r "print_r(get_defined_constants());"
php -r "print(phpversion());"
}}}
Note: at Windows use double quote to wrap whole command and single quote for text inside