Forum und email

imagecreatefromxpm

(PHP 4 >= 4.0.1, PHP 5)

imagecreatefromxpm — Create a new image from file or URL

Popis

resource imagecreatefromxpm ( string $filename )

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

Tip

Môžete použiť URL ako názov súboru s touto funkciou ak boli fopen wrappery povolené. Pozri fopen() pre viac detailov ako určiť názov súboru a Zoznam Podporovaných Protokolov/Balíčkov pre zoznam podporovaných URL protokolov.

Parametre

filename

Path to the XPM image

Vrátené hodnoty

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

Vrátené hodnoty

Note: Táto funkcia je dostupná len ak bolo PHP kompilované s pribalenou verziou GD knižnice.

Warning

Windows verzie PHP staršie než PHP 4.3.0 nepodporujú pristupovanie k vzdialeným súborom cez túto funkciu, aj keď je allow_url_fopen povolená.