Thursday, April 14, 2016

Where is php.ini file located?


One of the most important file in php world is probably the php.ini file, this file contains configuration of the php that's running on your server. The question is where exactly this php.ini file located?

How to find out maximum upload size in php


In php you can set the maximum upload file size for your application, which is i believe you can set on php.ini file, but the question is how to see this maximum file size from the coding?

Wednesday, April 13, 2016

How to check file/directory exist or not in php


To check whether a file is really exist or not in php, we can use function called file_exists(), the same function can also be use to check folder/directory exist or not.

Friday, April 8, 2016

How to remove underscore from a string in php


To remove underscore from a string in php, we can use the str_replace function, in fact you can also remove other character or other string, so not just underscore.