Posted by moxmormor on 08/10/06 20:39
Bob Bedford wrote:
> 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
what i wanted to was to show the current gif image on my site, using
php. I think I might have misunderstood the consequences of the
imageCreateFromGIF function.
But thanks anyway:)
[Back to original message]
|