Two Laptop Bag
The moose likes PHP and the fly likes imagecreate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "imagecreate" Watch "imagecreate" New topic


egbai mmumene
Ranch Hand

Joined: Sep 18, 2012
Posts: 46
please i'm trying to use the imagecreatfrom() function but when i run my code i get an error saying file or directory not found
K. Tsang

Joined: Sep 13, 2007
Posts: 3130

Make sure your file path is "relative" to the php page where you execute your imagecreatefromxxx() method. If in doubt, try loading the file in the browser first.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
I agree. Here's the link:
subject: imagecreate
It's not a secret anymore!