O'Reilly logo

PHP 5 Power Programming by Derick Rethans, Stig Sæther Bakken, Andi Gutmans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.9. String Substitutions

It is possible to set up replacements, or substitutions, that are performed on files when installed. This is useful to keep default path names and other configuration data in sync with the user's PEAR configuration, to invoke PHP with the right PATH, and more.

12.9.1. Element: <replace>

Element name:replace
Attributes:from (required)

to (required)

type (required)
May occur in:file (optional)

The replace element specifies a substitution that is performed for the containing file during installation. All occurrences of the from attribute in the file are replaced with a string represented by the to and type attributes. The type attribute may have one of these values:

  • php-const. from is replaced by the value of the PHP constant ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required