php imagejpeg works on one windows server 2008

Posted on 2011-05-10
Last Modified: 2013-12-13
$tmp = imagecreatefromjpeg($uploadedfile);


worked on another windows server 2008 php5.2
but does not work in
windows server2008 php5.3.6

Question by:rgb192
    LVL 7

    Expert Comment

    What is the error you are receiving?

    Author Comment

    folder permissions are 777

    image not copying from temp to folder
    LVL 7

    Accepted Solution

    so using the code you have above
    $uploadedfile is correct (temporary location of the image)
    $filename is the destination where you want to save the new image

    and the script is failing on the line where it is supposed to save to $filename, or is it failing on the line where it creates an image from $uploadedfile?

    Is that correct?

    I'm assuming that you are using two different windows servers. It would be interesting to see if you had the same problem if the first one was upgraded to php 5.3.6 from 5.2. At the end of the day it sounds like it's a permission problem (related to windows) and not a php problem.

    Author Comment

    >>permission problem

    when I change folder to 777, I still have same problem

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now