|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-11 16:27 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
Description: ------------ When using either imageSX or imageSY or imageCreateFromJpeg and etc. The compiler does not allow imageSX('myimg.php?index=10') (Note: The file does exist and it is in the correct path) Reproduce code: --------------- for($i = 1; $i <= mysql_num_rows($result) ; $i++) { $record = mysql_fetch_row($result); $pics[$i]['src'] = "pg_im_full_by_id.php?ind=".$record[0]; $newIMG = imagecreatefromjpeg('pg_im_full_by_id.php?ind='.$record[0]); $pics[$i]['width'] = imageSX($newIMG); $pics[$i]['height'] = imageSY($newIMG); } Expected result: ---------------- Create an image using the source file, take its attributes and assign to the array. Actual result: -------------- Warning: imagesx(): supplied argument is not a valid Image resource