SEARCH
Archive for October, 2012
Diff Compare Files
Wednesday, October 17th, 2012
Compare Files Using Diff
The file comparison utility “diff” outputs differences between two files. In the past, “diff” compared text files. Modern versions of “diff” compare binary files such as audio and video files.
Web designers can use “diff” to quickly compare files. Programmers can use the differences as messages for source control management systems. In this tutorial, “diff” will be used to compare text files.
Tags: bash, cli, command line, compare, diff, files, shell
Posted in Tips & Tricks | No Comments »
Apache Password Protect
Wednesday, October 10th, 2012
Password Protect Folder Using Apache
Web designers can utilize the Apache Web Server to protect web folders. Content can be protected by a password prompt.
Content will not be accessible when a web visitor enters the wrong credentials. A user name and password will be requested every time a new browser instance is used to visit the protected content.
Tags: .htaccess, .htpasswd, apache, html, http, password, protect, server
Posted in Tips & Tricks | 2 Comments »
PHP Mobile Device Detect
Wednesday, October 3rd, 2012
Detect Mobile Devices Using PHP
Web designers can utilize the PHP to get information about the browser. HTTP_USER_AGENT is a string that contains contents of the header such as the platform used.
The platform is usually the operating system on desktop browsers. On mobile devices, it might be the device name. The string will be converted to lowercase to make sure that the devices can be detected.
Tags: android, apache, blackberry, browser, Detect, iPhone, Mobile, php, server, user agent, windows phone
Posted in Tips & Tricks | 1 Comment »