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 18:12

Bob Bedford wrote:
> "moxmormor" <moxmormor@gmail.com> a écrit dans le message de news:
> 1155230244.606157.221710@m79g2000cwm.googlegroups.com...
> >> try a echo $_SERVER['DOCUMENT_ROOT'].'/hindenburg.gif' to be sure, maybe
> >> your config root is wrong (pointing to the wrong file). Also to be sure,
> >> put
> >> everything in a var:
> >>
> >> $filename = $_SERVER['DOCUMENT_ROOT'].'/hindenburg.gif';
> >> echo $filename;
> >> if(file_exists($filename))
> >> echo 'file exists';
> >> else
> >> echo 'file doesnt exist';
> >>
> >> Bob
> >
> > Pretty strange. Now the output is that the file is nonexistant, then
> > the full path, then that the file DOES exist.
> Sorry I don't understand what you mean. What do you mean for output file ?

The output of my commands. The output, as you can see in the code,
tells me that the two paths are alike, but the one exists and the other
doesn't.
> the full path is OK, are you sure on case (Linux is case sensitive,
> remember), where the file DOES exists ?

yes, I've got everything in the same folder. And I have gained access
to textfiles in that folder before.

> >> Are you on linux or XP ?
> >
> > I'm on a Linux server I'm pretty sure. Since they are operating with
> > php. My PC is XP.
> PHP can run on XP too, but if it's a professional web hosting, probably it's
> on Linux.
> On your page I've this result:
> nonexistant/var/www/virtual/moxmormor.byethost11.com/moxmormor_org/htdocs/hindenburg.gifexistant
> why there is a nonexistant and then an existant ? Your code is called twice
> ?
> Could you send the entire code ? I'll check it for you.

Here it is:

<?php
function billede()
{
if
(!file_exists('/var/www/virtual/moxmormor.byethost11.com/moxmormor_org/htdocs/hindenburg.gif'))
{
$bill = imageCreateFromGIF
('/var/www/virtual/moxmormor.byethost11.com/moxmormor_org/htdocs/hindenburg..gif');
return $bill;
}
else
echo "nonexistant";
}
billede();
$filename = $_SERVER['DOCUMENT_ROOT'].'/hindenburg.gif';
echo $filename;
if(file_exists($filename))
echo 'existant';
else
echo 'nonexistant';
?>

Thank you for your effort :)

> I found the moxmormor.byethost11.com in your address quite strange altrough.

I started with a free account at byethost to check it out. then I
changed to a paid solution, and got my public DNS changed or something.
There is a reasonable explanation, although I don't understand it ;)

> 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

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