PHP

Post

Browsing posts in PHP

Comments   |   JavaScript, PHP
Small and powerful form framework

Small and powerful form framework

jFormer is form framework that is written in PHP, Javascript, and CSS. jFormer allows developers to spend less time styling coding and validating their forms, and spend their time actually working with the data instead. It’s only 18K gzipped.

Comments   |   PHP
Create URL from string

Create URL from string

This function converting any text to use in links.

Comments   |   PHP
Remove empty elements from array

Remove empty elements from array

It’s very easy $array = array_diff($array, array(''));

Comments   |   PHP
Easy remove last character from string

Easy remove last character from string

For Example we need remove last comma in string, use this trick: $str = 'php, jquery, mysql, backup,'; echo substr($str, 0, -1);

1 comment   |   MySQL, PHP
MySQL server status

MySQL server status

Hi, I have some time today, so I decided to write post about how to receive about Mysql status with PHP. Here is a list of data that can be obtained from MySQL server: Uptime of MySQL server The number of threads (connections). Number of completed requests for all time of the server work. Number ...

Comments   |   PHP
How to get redirect url without CURL

How to get redirect url without CURL

If you want to know where page redirect,  you need this userful functions: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 function get_redirect_url($url){ $redirect_url = null;   $url_parts = @parse_url($url); if (!$url_parts) return false; if (!isset($url_parts['host'])) return ...