Answer the question
In order to leave comments, you need to log in
The imagecreatefromjpeg function does not work on Denwer, what should I do?
Hello everyone, I've run into this problem. On one PC the imagecreatefromjpeg function worked fine now moved to another PC everything was installed by Denver and so on. But here's the problem. Imagecreatefromjpeg function doesn't want to work
<?php
$images = imagecreatefromjpeg("image.jpg");
echo imageSX($images);
?>
Warning: imagecreatefromjpeg(image.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in O:\home\test1.ru\www\index.php on line 3
Warning: imagesx(): supplied argument is not a valid Image resource in O:\home\test1.ru\www\index.php on line 5
Answer the question
In order to leave comments, you need to log in
Let's start by getting rid of Denwer.
Second, make sure to give the function what it wants: "valid Image resource". Because in your error message it is clearly written that it receives something else.
I have nothing but Denver and nothing else. Always used it. Used Open Server a couple of times but it didn't work very well.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question