NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Call to undefined function: imagecreatefromjpeg()


Joined: 13 Mar 2004
Posts: 4
Reply with quote
Hello
I am using your program PHPEd, it is very useful, but I can understand why it said

---------------------------
Error
---------------------------
Error: E_ERROR
Call to undefined function: imagecreatefromjpeg()
at print.php line 2
---------------------------
OK
---------------------------
Because this scrip work on the server without problems! and server didn’t said that there is an error. Please answer what can be reason of error. May be I need some plugin?

Thank you very much for you help
Your sincerely
User
View user's profileFind all posts by VitaliSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
this function is a part of GD php extension. You have to install this extension first
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Mar 2004
Posts: 4
Reply with quote
Hello
Could you give me the URL, where I can download this program?
Thank you very much.
Your sincerely
User
View user's profileFind all posts by VitaliSend private message


Joined: 13 Mar 2004
Posts: 4
Reply with quote
I want to add that:
I have installed apache and php on my computer and my script work properly when I run apache server. But this error occur only on PHPEd, never mind is apache ran or not.
Thank you very much.
View user's profileFind all posts by VitaliSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
php_gd2.dll is included. you only need to uncomment it in php.ini.
Regarding your second question, if you need to work with Apache you'd set run mode to "3rd party web server" and have a project set up accordingly.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Mar 2004
Posts: 4
Reply with quote
Thank you for help. The problem was solved.
Now I have another question. Why there is error when I use
echo "<img border=\"5\" src=\"print.php?$line\" width=\"376\" height=\"376\">";
where $line is a string variable contain information about some variables which need “print.php” script. But when debugger enter the “print.php” script it said that some variables are unknown. But I have sent them by URL!
Thank you for help.
You sincerely
User
View user's profileFind all posts by VitaliSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
RTFM!
faq-i-don-t-see-parameters-defined-in-url-what-s-wrong-t583.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Call to undefined function: imagecreatefromjpeg()
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic