How-to articles, tricks, and solutions about PHP
How to access the php.ini from cPanel?
To access the php.ini file from cPanel, you can follow these steps:
Remove all non-numeric characters from a string; [^0-9] doesn't match as expected
You can use the preg_replace function in PHP to remove all non-numeric characters from a string.
Check if number is decimal
In PHP, you can use the is_float() function to check if a variable is a decimal number.
phpMyAdmin allow remote users
phpMyAdmin is a web-based tool for managing MySQL and MariaDB databases.
Checking if a variable is an integer in PHP
In PHP, you can use the is_int() function to check if a variable is an integer.
How to display a date as iso 8601 format with PHP
You can use the date() function in PHP to display a date in ISO 8601 format.
Clearing content of text file using php
To clear the contents of a text file using PHP, you can use the file_put_contents() function.
HTML Upload MAX_FILE_SIZE does not appear to work
In PHP, you can use the $_FILES array to check the size of an uploaded file.