Solved

imagecopyresampled page can not be found

Posted on 2009-03-31
4
218 Views
Last Modified: 2013-12-13
i have a code that runs correctly in local and some of my servers. but we setup new server when running this code in it. After running that code it gives page cannot found error.
<?php              
          $thumbImageStoredb = "../foto/kresim/".$file_name;
                        
                        $thumbImgResizedb = imagecreatetruecolor($wkb, $hkb);
                        imagecopyresampled($thumbImgResizedb, imagecreatefromjpeg($_FILES['file']['tmp_name']), 0 , 0 , 0 , 0, $wkb, $hkb, $wb, $hb);
 
                        imagejpeg($thumbImgResizedb, $thumbImageStoredb);
                        
                        chmod($thumbImageStoredb,0777);
                        imagedestroy($thumbImgResizedb);
?>

Open in new window

0
Comment
Question by:phparmy
4 Comments
 
LVL 14

Expert Comment

by:shobinsun
ID: 24036504
Hello,

Use the code " chmod($thumbImageStoredb,0777); " 

after  " $thumbImageStoredb = "../foto/kresim/".$file_name; "

and try.


Can you give me full code?


0
 

Author Comment

by:phparmy
ID: 24037077
array(11) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(false) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }

Thanks i find solution JPG support not enabled.
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 24267836
Question PAQ'd, 500 points refunded, and stored in the solution database.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

770 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