
First of all, let’s figure out what Dynamic DNS update is and why it is used in most recent versions of bind.
Dynamic update represents the idea of exchanging data between two computers with known names both visiting an unknown network where we don’t know, care or trust the underlying address.
It is now possible to point your neighbor at the IETF conference to a web page on your laptop by pointing at the URL on your business card using this technology.
Google has lately launched its new service named Google Public DNS. What does it mean and how do you use them? Here is a brief excerpt from Google:
Google Public DNS is a free, global Domain Name System (DNS) resolution service, that you can use as an alternative to your current DNS provider.
To try it out you need to configure your network settings to use the IP addresses 8.8.8.8 and 8.8.4.4 as your DNS servers.
If you need to have valid date and time on your server, you need to synchronize it with a time server as well. In order to do this in Linux (especially in CentOS), we will follow my short howto.
1. Ensure you’ve got ntp installed. Run rpm -qa | grep ntp to find out if it already exists on your system and yum install ntp if it is not present.
2. Run ntpdate. On CentOS, you will probably get this error:
[root@server ~]# ntpdate
29 Jan 09:52:54 ntpdate[8463]: no servers can be used, exiting
PHP code protection is widely used today. As most servers come with Zend installed, I will tell you how to install another code protection library named Ioncube. If you’re a server administrator, I would suggest you to install this library on server level, as it might be used by many users of your server.
First of all, we need to download the Ioncube package. Just choose your operating system and download an archive to your place. Then you need to extract it.
As you should already know, register_globals is a php.ini directive that manages the way PHP deals with variables. It has been deprecated for security issues and we won’t see it in PHP 6.0. If the deprecated register_globals directive is on (removed as of PHP 6.0.0), then variables_order also configures the order the ENV, GET, POST, COOKIE and SERVER variables are populated in global scope.
When you are dealing with encoded strings it is not so easy to determine the encoding. But if your string is converted to unicode, there are no standard PHP functions to decode it. I have found a function that allows to convert a unicode string to any charset you like. Here it is:
Sometimes, for example, when you need to create a password, you need to change character case. I wrote the function that allows to generate a string with random case. Here it is:
function randomcase($word)
{
$output="";
for ($l=0; $l
{
if (mt_rand(0,1)==1) $output.=strtoupper($word{$l}); else $output.=strtolower($word{$l});
}
return $output;
}
It's very simple, but sometimes you need a ready code instead of writing your own. Hope to save some minutes.
I will not post the whole process of sendmail configuration here, just would like to pay attention to a small detail.
/etc/mail/local-host-names is a text file, that contains the list of domain names and it is taken by sendmail when checking outgoing mail. You should make sure you have this file in the following format:
# local-host-names sample file
lampdocs.com
test.lampdocs.com
# end of file
Nowadays file upload is widely used on the web. We upload pictures, archives and videos and often don’t think how these files are handled by our server. In this post I’m going to show you several solutions for file upload in PHP, that allow to determine what kind of file was uploaded using a form.
The first option is related to the $_FILES array. When a file is uploaded, it is placed into a temporary directory and we use PHP functions to move it to the place we need. Let’s take a simple form to understand how it is processed.
Yesterday I decided to downgrade my PC to Windows XP. Though Windows 7 is already available, I don’t quite like its interface (have installed beta) and I need a stable system that suits for my needs. I’ve got a list of “Mush have” software, that is installed on my PC after the OS is installed. I have followed the list and I was really surprised when my PC has become inaccessible on the network. More than that, I couldn’t even check my own shared files – I was told I don’t have privileges for that.
“The team at Blisstering took personal pride in their development work, even to the point of augmenting the product with improvements and enhancements in order to deliver the best solution possible.”
Gale Wilson-Steele
Founder and CEO
CareSeek
“It was my first time using a website development company, and as much as I apprehended the whole process, it could not have been easier. At Blisstering, they made the whole process much less threatening than it seemed by being pleasant, cooperative, helpful, creative. They were quick to start work on our CRM solution, and to get it to completion -- on-time and on-budget. I love the final result! I strongly recommend Blisstering Solutions, and with pleasure.”
R. R. Shah
International Marketing Corporation