FindPHP4 — CMake 4.4.1 Documentation

# FindPHP4

Finds PHP version 4, a general-purpose scripting language:

    find_package(PHP4 [...])

Note

This module is specifically for PHP version 4, which is obsolete and no longer supported. For modern development, use a newer PHP version.

This module checks if PHP 4 is installed and determines the locations of the include directories and the PHP command-line interpreter.

## Result Variables

This module defines the following variables:

`PHP4_FOUND`

  Boolean indicating whether PHP 4 was found.

## Cache Variables

The following cache variables may also be set:

`PHP4_INCLUDE_PATH`

  The directory containing `php.h` and other headers needed to use PHP.

`PHP4_EXECUTABLE`

  The full path to the `php` command-line interpreter executable.

## Examples

Finding PHP:

    find_package(PHP4)