Re: imagesx(): supplied argument is not a valid Image resource (CODE)
| From: | John Nichel | Date: | Tue, 30 Nov 2004 19:59:08 +0000 |
| Subject: | Re: imagesx(): supplied argument is not a valid Image resource (CODE) | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203175@lists.php.net to get a copy of this message | ||
Robert Sossomon wrote:
<snip>
When I run it in the browser, I get: Fatal error: Call to undefined function: imagesx() in c:\fourh\spotlight3.php on line 31 when i run it from the command line I get: C:\fourh>php.exe spotlight3.php Content-type: text/html X-Powered-By: PHP/4.3.9 <br /> <b>Warning</b>: imagesx(): supplied argument is not a valid Image resource in < b>C:\fourh\spotlight3.php</b> on line <b>31</b><br /> <br /> <b>Warning</b>: imagesy(): supplied argument is not a valid Image resource in < b>C:\fourh\spotlight3.php</b> on line <b>32</b><br /> <img src="images/youthtoday2.gif" height="0" width="0">Doh, my bad. imagesx() requires the image resource, and not the path. As for the difference in browser vs. command line, it looks as if you've got multiple php.ini files. Do a phpinfo() in a browser, and it will show you where it's looking for the php.ini file. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com