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 }
CURL cookie.txt file format

CURL cookie.txt file format

CURL autogenerate file cookie.txt: # Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This file was generated by libcurl! Edit at your own risk. www.filefactory.com FALSE / FALSE 0 PHPSESSID 8dcolkh52m2eo4rv61aolurjd7 .filefactory.com TRUE / FALSE 1342341229 ff_referrer_hash HDAgPzI bitshare.com FALSE / FALSE 0 PHPSESSID qjv4u6g6k20s8brar2o17msk26 bitshare.com FALSE / FALSE 1342401324 last_file_downloaded b5b7gbwq freakshare.com FALSE /files/9q5hajyh/ FALSE […]

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

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

Please read PHP: Methods to encrypt and decrypt with private key (part 1) Method 2: use arcfour algorithm Example usage: result: It isn’t a nice result, we need to convert to a nice result: base64_encode Result: 77cOFdy5O3YaciW/Zw== unpack Result: efb70e15dcb93b761a7225bf67 To decrypt, we use this code: We get the result: your password If we encrypt […]

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

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

There are some methods to encrypt your data with a private key. Method 1: Note: your private key must have string length greater than 8. Example usage: result: ““0bhercjya In the resulting string has special characters. We will convert the resulting string into a nice result: base64_encode Result: YGBgYDBiaGVyY2p5YQ== unpack Result: 606060603062686572636a7961 To decrypt, we […]

Read full story Comments { 0 }

Create a Search Box using CSS/HTML

Nowadays, most websites come with a search box to improve surfing experience. To make your website looks good, beside having a nice looking theme, you would need a fancy search box to replace the classic ones.

Read full story Comments { 0 }