Our PHP script is hosted on Linux based Apache Server. I have a form with one textarea and a submit button. This textarea contains a very long base64 string of 284312 characters.
When I submit this form it takes too much time. It is still processing after a very long time. It is working for small base64 string and images are posted successfully but it is not working with large size images base64 string.
I am using following code on server side to get this base64 image:
$ifp = fopen( "images/myimage.png", "wb" );
$status = fwrite( $ifp, base64_decode( str_replace(' ', '+', $_REQUEST['image'] ) ) );
fclose( $ifp );
Is there any solution for this? Should I change anything in my PHP or Apache configuration ?