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

Posted by Bob Bedford on 08/10/06 19:19

Try this:

<?php
function billede($filename){
if(!file_exists($filename)){
$bill = imageCreateFromGIF($filename);
return $bill;
}else
echo "file already existent, cannot create new file<br>";
}
$filename = $_SERVER['DOCUMENT_ROOT'].'/hindenburg.gif'; //this avoid a lot
of problem. Typing manually the file will get you into trouble later...
echo $filename.'<br>';
$img = billede($filename);
/*if(file_exists($filename))
echo 'existant'; //should always be called has it would be created if it
wasn't existent before or already exists.
else
echo 'nonexistant';*/
?>

>Thank you for your effort :)

np.

try this code and let me know.

Bob

 

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

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