You are here: Re: imagecreatefromgif not working « PHP Programming Language « IT news, forums, messages
Re: imagecreatefromgif not working

Posted by moxmormor on 08/10/06 16:01

> Are you sure about the file path ? try to add the complete path of the file,
> maybe with a if file_exists() to be sure...and print an error message if it
> doesn't exists.


Now I'm confused. When it executed the following script, the output was
'nonexistant'.

<?php
function billede()
{
if (!file_exists('hindenburg.gif'))
{
$bill = imageCreateFromGIF ('hindenburg.gif');
return $bill;
}
else
echo "nonexistant";
}
billede();
?>

However, when I changed 'hindenburg.gif' to
'moxmormor_org/htdocs/hindenburg.gif' it went blank again.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация