Solved

imagecopyresampled page can not be found

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This article discusses how to create an extensible mechanism for linked drop downs.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

9 Experts available now in Live!

Get 1:1 Help Now