Forum und email

imagecreatefromxpm

(PHP 4 >= 4.0.1, PHP 5)

imagecreatefromxpm — Create a new image from file or URL

Description

resource imagecreatefromxpm ( string $filename )

imagecreatefromxpm() returns an image identifier representing the image obtained from the given filename.

Tip

Tämän funktion kanssa voit käyttää myös URLia tiedostonimen sijaan jos "fopen wrappers" on kytketty päälle. Katso funktiosta fopen() lisätietoa tuetuista URL-protokollista ja siitä kuinka tiedoston nimi määritellään List of Supported Protocols/Wrappers.

Parameters

filename

Path to the XPM image

Return values

Returns an image resource identifier on success, FALSE on errors.

Return values

Note: This function is only available if PHP is compiled with the bundled version of the GD library.

Warning

PHP:n Windows versiot ennen versiota 4.3.0 eivät tue tiedostojen käsittelyä verkon ylitse tällä funktiolla vaikka allow_url_fopen olisi päällä.