file_put_contents and createimagefromjpeg


Posted on 16th Feb 2014 07:03 pm by admin

All,
I do somethings and then I have the following code:
file_put_contents('./test/'.$filename,$attachment_raw); //Give full path to $filename

Did you know?Explore Trending and Topic pages for more stories like this.
I then do:
$im = imagecreatefromjpeg($path_to_image_directory . $filename);

However, I get errors when I do this. The $filename is the file that I just put into the $path_to_image_directory using file_put_contents.

Can you use these two things together?

Thanks.
No comments posted yet

Your Answer:

Login to answer
320 Like 13 Dislike
Previous forums Next forums
Other forums

IIS & NW MII on the same server
Hi,

We're weighing the possibility to run both IIS and MII (NetWeaver) on the same server

pspell
using pspell, is it possible to get words that would be best in the current phrase?

For examp

Insert to MySQL inside foreach
Hey.
I am parsing some html, and putting inside an html db.
I need to create a randomized inte

ORA-01017: invalid username/password; logon denied
Dear All,

I am facing problem in taken backup from db13 it comes up with the following l

FILTER_CALLBACK -- Files?
Hi All,

I'm using the php filter functions to validate my form data. For custom filters, I'm

error with opendir
when i do this

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($han

Shopping Cart
Can anyone direct me to a Simple, Basic structure of a shopping cart.
New to classes. I want to s

Image resize
Hi again fellers

I managed to sort out the issues with the folder,

Final hurdle is th

Show message after entering data
Hello Colleagues

I would like to display messages after entering the data example: "
dat

Email Processor
I have a few questions so this post will be a larger one! Sorry, but I'm a bit of a PHP newbie so be

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash