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

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

Comparing MySql data and arrays.
I have a mysql table set up like this:
idsubjectbodyuseriddatetimetags1blog subjectblog body111|2

please fix the error
What is the error in the below code ???
Line number On/Off | Expand/Contract <?php

header redirect problems? please help
Ok i am making a site that generates youtube thumbnails and i am generating an image that displays 1

Fatal error: Call to a member function fetchrow() on a non-object in C:xamppht
okay i have this query and everytime i add `item_id`=? to it... it gives me the error in the title..

Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added

What do you call the "token" thing?
You know how some sites have links that run on tokens? Tokens are links that only stay alive for a c

LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...

$result = mysql_query(&q

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

PHP and XML image gallery variable issue
I'm trying to display the large image on the same page as the thumbnails, to do that I'm passing a v

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