Solved

imagecopyresampled page can not be found

Posted on 2009-03-31
4
216 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Echo vs ?><?php  html code 4 46
WordPress syntax 2 28
How to set a countdown by not using the PC time in PHP 36 45
str_replace not working in php script 4 13
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
The viewer will learn how to dynamically set the form action using jQuery.

867 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

20 Experts available now in Live!

Get 1:1 Help Now