|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26195 Not Using Remote Paths
Submitted: 2003-11-10 23:32 UTC Modified: 2003-11-11 16:27 UTC
From: bijan at tehranto dot com Assigned:
Status: Not a bug Package: Compile Warning
PHP Version: 5.0.0b2 (beta2) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 32 = ?
Subscribe to this entry?

 [2003-11-10 23:32 UTC] bijan at tehranto dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-11 16:27 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a support issue and not a bug.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 20:05:45 2022 UTC