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

Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not a

redirect standard error and assert (how to?)
How do you redirect standard error and assert?

---

(Why? I am creating an web app and

i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");

error_reporting(E

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be

media recovery
Hi,
i startup the database i got the error

SQL> startup
ORACLE instance started.

When file included, REMOTE_ADDR is server's?
I have an index file that handles my site, basically index.php?page=ip will activate "require('

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

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