PHP 4

[ PHP ]

(!!! Teleportom!!!)
: fopen, msql_num_fields, socket_write ...


16.

PHP HTML-. , gif, png, jpg, wbmp xpm. : PHP . PHP GD . GD PHP , , . GD Gif- 1.6.

16-1. PNG PHP
<?php
    Header("Content-type: image/png");
    $string=implode($argv," ");
    $im = ImageCreateFromPng("images/button1.png");
    $orange = ImageColorAllocate($im, 220, 210, 60);
    $px = (imagesx($im)-7.5*strlen($string))/2;
    ImageString($im,3,$px,9,$string,$orange);
    ImagePng($im);
    ImageDestroy($im);
?>

: <img src="button.php?text">
button.php "text", , "images/button1.png", . , . .


HTTP- PHP
HTML

: 3119 .

: - |  -