Web development »
Social shared counter – count URL shares in popular social networks
It is very important to have social shares statistics. There is a very interesting and friendly tool to count social shares is a www.sharedcounter.com it is free
Read More »Modify HTTP Headers (Examples)
Many examples that show how to use the header() function of PHP [crayon-603d15588a9d5954042848/]  
Read More »HOW TO CREATE A PASSWORD FOR A .HTPASSWD FILE USING PHP
Below is a PHP script that generates a password for .htpasswd from the clear text password stored in $clearTextPassword. Please note: For Apache servers running on Windows you have to use the htpasswd program to
Read More »Password Protect a Directory Using .htaccess
Protecting files on your website from unauthorized users can be very important. Even more important is the method by which you accomplish this task. You could use PHP to listen for login authorization information
Read More »30 Popular .htaccess code snippets (.Htaccess Code Snippets, Examples, Tips And Tricks)
“A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration„. (FromWikipedia) The .htaccess method will only effect the folder in
Read More »Disable execution of PHP, Perl, Python, Java in .htaccess
Hello everyone! Sometimes you need to disable execution of scripts under certain folder using .htaccess. It’s useful if you have any security issue on server and want to stop execution of dynamic languages or
Read More »XML string to PHP array
Sometimes you come to a moment when you need to convert xml to php array. It may have different reasons. So here i am going to show how it works. To do it, simply
Read More »Uploading a file using Curl in PHP
Hello World! Today i will show you how to submit file in php using cURL. The most important is to add “@” symbol at the beginnig of the path. That was all the magic^^
Read More »Updated: List of HTTP status codes
1xx informational 100 client should continue with request 101 server is switching protocols 102 server has received and is processing the request 103 resume aborted PUT or POST requests 122 URI is longer than
Read More »301 Redirects
Hello World! This is the best, the cleanest, simple and search-engine friendly way to redirect an URL to another URL. Redirect a single page As you see, first we write the keyword (Redirect), then
Read More »