Gutspiller Posted April 22, 2010 Share Posted April 22, 2010 Some pages in my script for flash games, are giving this error: Warning: getimagesize(./swf/Climb or Drown_april_7th_2010.swf) [function.getimagesize]: failed to open stream: No such file or directory in /home/games4w/public_html/games/system.class.php on line 431 I say some, as only some pages are giving the error, but others work fine. The error use to say line 430 and I had this on that line: list($imagewidth, $imageheight, $itype, $iattr, $imime) = getimagesize($this->swfdir."/".$game['game_swf']); But someone told me to change from that to this: $swfPath = $this->swfdir . '/' . trim($game['game_swf']); list($imagewidth, $imageheight, $itype, $iattr, $imime) = getimagesize($swfPath); That is when it changed to line 431. Line 431 is the "list($imagewidth," part of that. Does anybody else have any ideas for me on how to resolve this error? The strange thing is that when I made that change, the games were displaying the error, actually stopped showing the error, but then after browsing the site more, I found out other games still show the error. Can anybody please help me? Link to comment https://forums.phpfreaks.com/topic/199339-host-says-check-php-include-path/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.