Tweet
Follow @easyphp
introduction
screenshots
faq
forum
blog
modules
components
download
Please use the
search function
and/or read the
FAQ
first.
Go to Topic:
Previous
•
Next
Go to:
Message List
•
New Topic
•
Search
•
Log In
•
Print View
file_exists()
Posted by:
hologram
January 25, 2009 07:00PM
Bonjour à tous et toutes.
Comme le titre l'indique j'ai un souci avec la fonction file_exists().
mon code (raccourcis) est le suivant:
if(file_exists('chemin/img.jpg'))
{
$source = imagecreatefromjpeg('chemin/img.jpg');
}
else echo 'pas d\'image';
A savoir qu'avec la version 2.0b1 tout fonctionne a merveille.
Une idée??
Options:
Reply
•
Quote
Posted by:
hologram
January 25, 2009 07:03PM
Oup j'oubliais.
En fait avec la version 3.0 c'est le else qui est executé alors qu'avec la version 2.0b1 c'est bien le if qui s'execute (quand l'image est trouvée bien sur!).
Options:
Reply
•
Quote
Go to:
Message List
•
Search
•
Log In
Your Name:
Your Email:
Subject:
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
[Please, enable JavaScript to see the code]
Enter code: