Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

imagecopyresampled page can not be found

Posted on 2009-03-31
4
Medium Priority
?
240 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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

721 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