note 98090 added to function.imagesy

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Ho sviluppato questo esempio basato sulla documentazione
di php.net/manual riguardo alla generazione di immagini in PHP e vorrei condividere con voi.Allora eccolo:

<?php

$file="img/image1.png";

$img =imagecreatefrompng($file);

if ($img) {
 //Ottiene la larghezza reale della nostra immagine .png
 $img_width = imagesx($img);
 //Ottiene l'altezza reale della nostra immagine .png
 $img_height = imagesy($img);
//Pulisce le risorse
 ImageDestroy($img);
}
echo '<table>
      <tr>
	  <td><img src="img/image1.png" ></td>
	  </tr>
      <tr>
      <td>La larghezza dell\'immagine e : '.$img_width.' pixel</td></tr>
	  <tr>
      <td>L\'altezza dell\'immagine e : '.$img_height.' pixel </td>
</tr></table>';

?>
----
Server IP: 187.16.23.134
Probable Submitter: 200.132.17.240
----
Manual Page -- http://www.php.net/manual/en/function.imagesy.php
Edit        -- https://master.php.net/note/edit/98090
Del: integrated  -- https://master.php.net/note/delete/98090/integrated
Del: useless     -- https://master.php.net/note/delete/98090/useless
Del: bad code    -- https://master.php.net/note/delete/98090/bad+code
Del: spam        -- https://master.php.net/note/delete/98090/spam
Del: non-english -- https://master.php.net/note/delete/98090/non-english
Del: in docs     -- https://master.php.net/note/delete/98090/in+docs
Del: other reasons-- https://master.php.net/note/delete/98090
Reject      -- https://master.php.net/note/reject/98090
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.