Ask 2 related questions: Php imagecreatefromjpeg and an Ajax

Source: Internet
Author: User
Ask 2 questions: Php imagecreatefromjpeg and an Ajax
1,imagecreatefromjpeg when does this function cause a crash to jump directly out of the current connection?
Now the situation is that I have a file of more than 500 k, in the generation of thumbnails, each time I get to this file will be directly stuck. Then, without prompting for any errors, direct blank pages. Other than 1M is not the problem.

Is there any other solution besides modifying php.ini?
2, when I use Ajax:

Jquery.ajax ({
Type: "Post",
URL: "Dialog.php?a=sift",
Data: {"CID": N, "data":D},
DataType: "JSON",
Success:function (data,textstatus) {
if (data.res==0) {
alert (data.msg);
}else{

}
}
});


May I ask if I can still pass a JSON array in the past? But why did I pass the past and then prompt for a stack overflow?


------Solution--------------------
1. When the total number of pixels in the picture exceeds the range of GD preset
However, I have not seen any indication of the upper limit, which seems to have the upper limit of 1024x768 before using PHP4.
But you can test it yourself.

Ini_set can dynamically set variables that allow modification


2, {"CID": N, "Data":d}
If d = {"CID": N, "Data":d}
Must be "stack Overflow" because recursion
JQ is to construct a JS object into a string before sending the
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.