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

Is there a function ... auto send IP
Is there some function that can be sent to a ddns service that returns the ip address of a ddns forw

How to know if online site made with PHP
Hello,
I see some sites that does not display extensions at all , for example:

www.site.co

help need on ob_start()
Hi

I am a newbie in php, I have a code
Line number On/Off | Expand/Contract <?phpo

jquery validation in codeIgniter
hai i need to add client side validation to my fiels which are selected in a forloop.the fields are

user administration
Dear @all,

what I have to do to set the user defaults for new users. At the moment I woul

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

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

Images outside webroot
Im hopeing someone can help me with this because i cant figure it out.I have setup an ASP.NET websit

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Implementing Single Sign-On using SAML 1.1, x.509, LDAP in C#.net
Hi, I got a requirement from the client i.e implementing single sing on using SAML 1.1( LDAP &

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