Find it:

Friday, June 28, 2013

Add large Files config in PHP

Like two days ago I had a problem trying to upload via POST some text files of about 15 mb and I was getting an error. That was because in the PHP configuration you have to change some stuff. By default PHP allowed you to upload files of 8mb.

The properties that you have to change are: (php.ini)

upload_max_filesize 20M
post_max_size 20M

And the timeout duration you have to change it as well:

max_input_time 300 (this is around 5 minutes)
max_execution_time 300

You can look these changes in your phpinfo file or you can create one coding:

echo phpinfo();

Firefox 23.0 BETA

Mozilla Firefox has launch their BETA 23.0 version for mobile and desktop. They have some new features like:


  • Support for new scrollbar style in Mac OS X 10.7 and newer
  • Mixed content blocking enabled to protects users from man-in-the-middle attacks and eavesdroppers on HTTPS pages.



And some cool changes like a new logo, better interface to notifications,
HTML5 <input type="range"> form control implemented, Social share functionality.



I going to start using it today, and of course all my developer work is going to continue with FireFox.


JQuery add (.append) and remove (.empty or .remove) divs

Good morning everyone, recently I'm learning how to work with JQuery plugins and methods, and I have to tell you is so easy and make your web look so much better.

This post is about and easy way to add and remove any kind of element in your web using JQuery functions.

.append() 

<script>
$("#link").click(function(){
    $("#add").append(" <b>Appended text</b>.");
  });
</script>

<html>
<div id="add"></div>
<p id="link">Append text</p>
</html>


This example just add some Text to the div with id="add".

.empty()


<script>
$("#link-empty").click(function(){
    $("#add").empty();
  });
</script>

<html>
<div id="add"></div>
<p id="link-empty">Empty Div </p>
</html>
And this example is going to empty all the elements of the div with id="add" only on click in the Remove text.


.remove()


<script>
$("#link-remove").click(function(){
    $("#add").remove();
  });
</script>

<html>
<div id="add"></div>
<p id="link-remove">Remove Div</p>
</html>
And this example is going to all Div (add) from your site.



I'm using the JQuery library jquery-1.10.1.js. Download