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

dinamic "textboxes"?
Ey all, my first post here, i hope its not a hard one

I display mysql results in a table

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

For examp

query based on 2 conditions
I want to select if the doc_type is either s OR f but this doesn't work:

Code: [Select]$query

Help with email validation please...
Hi,
Please could you help.
I have a register.php login page where users register, the detail

Credit card verification
I have a client who wants to process credit card transactions from his web site rather than the goin

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

Need help Updating SQL Server Express DB from c# :(
Please can anyone help with:-
1 How to sructure the strSelect statement.
2 How to instruct

help finding hacking loopholes
i was attacked by a redirect php injection

my pc is clean of viruses

so i figure that

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

output_buffering so rewrite
I'm planning to rewrite some of my scripts so they don't have to use output buffering to accomplish

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