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