Web Development

Posts related to Web Development

Make a div stick to top when scrolled to

Make a div stick to top when scrolled to Read More »

Migrating servers using DNS TTL for minimum downtime

Migrating servers using DNS TTL for minimum downtime Read More »

404 Error Page Best Practices

404 Error Page Best Practices Read More »

How and when to use robots.txt file

How and when to use robots.txt file Read More »

Getting real client IP address in PHP

Many times we need the visitor’s ipaddress for validation, security, spam prevention, etc. Getting the Visitor’s ipaddress is very easy in PHP. The simplest way to get the visitor’s/client’s ipaddress is using the $_SERVER[‘REMOTE_ADDR’] or $_SERVER[‘REMOTE_HOST’] variables. The variable in the $_SERVER array are created by the web server (like apache) and we can use

Getting real client IP address in PHP Read More »