Category Archives: PHP

Make a JSON object and send via ajax POST using jQuery

Use jQuery to send a JSON object via POST. Everything EXCEPT the ajax call is done with simple javascript and jQuery is not needed. This is nice since JSON.stringify() will take care of special characters and other special cases you would have to check for manually. A little protection from posting plain...
Read more

Increase upload size using php.ini or .htaccess

For some reason, I came across issues today, from 3 different sites, relating to limiting upload size.  The default upload size on many hosts is very limiting.  Most allow you to override using php.ini or .htaccess If you have access to your php.ini, this is the recommended method.  Either create a new php.ini or edit the...
Read more