PHP: File functions
Opening directory and listing files See the following code: output: To remove certain file name from the list, see the following code: This code lists all files except the ones…
Simply Explaining Technology
Opening directory and listing files See the following code: output: To remove certain file name from the list, see the following code: This code lists all files except the ones…
This article shows some techniques of manipulating data in an array. To keep it simple, let’s start by looking how we can remove quotes from a variable. To remove a…
Since PHP array are indexed from 0, the last element at any given time has the index count of array minus one. Following is a code example: The output of…
In PHP, all commandline parameter are passed to the $argv array. Following example shows how to use this array: $argv and $argv contain the passed parameters in the order they…
This error tells us that the mb_string library is not installed. mb_String is a library, which provides support for UTF-8 and UCS-2 characters. PHP uses ASCII by default which is…
First of all make sure that you have Apache, MySQL (or PostgreSQL), and PHP installed and configured on your system. On Ubuntu, you would type the following to install these…
phpPgAdmin is a web-based administration tool for PostgreSQL written in PHP. It is a very nifty tool with a very convenient GUI interface. If you have used phpMyAdmin for MySQL,…
PHP errors are by default set to go to the apache error log. On Ubuntu, the error log is located at /var/log/apache2/error.log. If you are a PHP developer, it is…
If a default timezone is not set in your php.ini, then you get the following warning: “Warning: strtotime(): It is not safe to rely on the system’s timezone settings. Please…
The filesize limit is not defined in PhpMyAdmin. The limit is taken from php.ini file. To change this limit, you needed to edit your php.ini file: Change the following two…