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
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to