PHP: function mb_str_split

PHP: function mb_str_split

mbstring provides multibyte specific string functions that help you deal with multibyte encodings in PHP. In addition to that, mbstring handles character encoding conversion between the possible encoding pairs. mbstring is designed to handle Unicode-based encodings such as UTF-8 and UCS-2 and many single-byte encodings for convenience.

Read full story Comments { 0 }

PHP Generate Random ID’s

First: creat func.php file Usage: Result: dd2djhiwgdpgzn9 n5ktlbi4roi6zhy …. Alternative method, very short:

Read full story Comments { 0 }
Function str_split in PHP4

Function str_split in PHP4

According to the document of PHP official website, http://php.net/manual/en/function.str-split.php str_split (PHP 5) str_split — Convert a string to an array

Read full story Comments { 0 }

Introduction to HTML5 and CSS3

The site of the world is entering a new technology and new standards. So they started developing HTML5 and CSS3.I will briefly describe HTML5.

Read full story Comments { 0 }
PHP CURL class support basic authorization, HTTP SOCKS5 proxy and much more

PHP CURL class support basic authorization, HTTP SOCKS5 proxy and much more

This is a useful class written by me and use it regularly. Features HTTPS connection Basic authorization, HTTP proxy SOCKS5 proxy Cookie jar and much more… For some usage, you can read more: PHP & CURL: step by step

Read full story Comments { 1 }

CSS border styles

Border or border around an element on a web page can be defined in CSS. Border can give the color, thickness and style. All we know for the three basic styles: Solid (solid line), Dashed (dotted line) and Dotted (dotted line), but you know that there are more?

Read full story Comments { 0 }

Multilevel drop down menu horisontal with CSS/JS/HTML

Horizontal drop down menu in several levels – or as we “drop down menu multilevel horisontal” is a common element of the website. When you first decide to locate in our code seems to be a very simple task, a few lines of html, css and a pair of nearly!

Read full story Comments { 0 }
PHP & CURL: step by step

PHP & CURL: step by step

After you read this article: Getting data without risking death with PHP, CURL, you’ve seen the power of CURL. I’ll write more about CURL to introduce a useful PHP class written by me and use it regularly. But first let’s take a CURL research through the examples, step by step: Example 1: GET, include response […]

Read full story Comments { 0 }
Page generated in seconds x.xxxx

Page generated in seconds x.xxxx

You’ve probably noticed at some sites a little message, mainly in the page footer, type ‘ Page generated in 0th seconds …. ‘or something similar. Here you can learn how to easily make using PHP microtime() function

Read full story Comments { 0 }
PHP: Methods to encrypt and decrypt with private key (part 3)

PHP: Methods to encrypt and decrypt with private key (part 3)

Please read PHP: Methods to encrypt and decrypt with private key (part 1) PHP: Methods to encrypt and decrypt with private key (part 2) Method 3: use xor encryption Example usage: result: It isn’t a nice result, we need to convert to a nice result: base64_encode Result: AAAAAAAAExoFFhsXRA== unpack Result: 000000000000131a05161b1744 To decrypt, we use […]

Read full story Comments { 0 }