Solved

imagecopyresampled page can not be found

Posted on 2009-03-31
4
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

623 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