Re: imagesx(): supplied argument is not a valid Image resource (CODE)

From: Date: Tue, 30 Nov 2004 19:43:51 +0000
Subject: Re: imagesx(): supplied argument is not a valid Image resource (CODE)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-203172@lists.php.net to get a copy of this message
John Nichel is quoted as saying on 11/30/2004 2:17 PM: <snip>
$width = imagesx($path)/4; $height = imagesy($path)/4;
$width = imagesx($path)/4; $height = imagesy($path)/4; 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"> -- Robert Sossomon, Business and Technology Application Technician 4-H Youth Development Department 200 Ricks Hall, Campus Box 7606 N.C. State University Raleigh NC 27695-7606 Phone: 919/515-8474 Fax: 919/515-7812 robert_sossomon@ncsu.edu

« previous php.general (#203172) next »