|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-22 23:24 UTC] sniper@php.net
[2003-01-22 23:41 UTC] info at ofek dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
please read carefully. this crashes PHP. (i.e. PHP.exe causes a GPF) the code is: <?php function ImageExists($url) { $r=@getimagesize($url); return $r[2]!=0; } echo ImageExists('http://domain/dir1/dir2/dir3/image.gif'); ?> make sure the path: http://domain/dir1/dir2/dir3/ containts THREE directories after the domain (i.e. 6 forward-slashes total), and that the PATH physically EXISTS. AND make sure that the file (in code 'image.gif') DOES NOT exist. You can test against: http://economads.com/libaware/_font/title/image.gif This crashes on my server - running PHP 4.3.0 as CGI with IIS Win2000. Hope this helps.