<?php if (!isset($_SERVER[‘PHP_AUTH_USER’])) { header(“WWW-Authenticate: Basic realm=\”Private Area\””); header(“HTTP/1.0 401 Unauthorized”); print “Sorry – you need valid credentials to be granted access!\n”; exit; } else { if (($_SERVER[‘PHP_AUTH_USER’] == ‘paul’) && ($_SERVER[‘PHP_AUTH_PW’] == ‘hudson’)) { print “Welcome to the private area!”;
Category Archives: Programming
MonoDevelop
MonoDevelop is an IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly write desktop and ASP.NET Web applications on Linux, Windows and Mac OSX. MonoDevelop makes it easy for developers to port .NET applications created with Visual Studio to Linux and to maintain a single code base for all platforms. …
Practical PHP Programming
Practical PHP Programming Welcome to the new home of Practical PHP Programming – now updated for PHP 5.2. This is the definitive source for the book from now on, and you’ll be pleased to know the entire book is hosted on a super-fast server so you should never have access troubles again.
PHP Shorthand If / Else Examples
Basic True / False Declaration $is_admin = ($user[‘permissions’] == ‘admin’ ? true : false);
Shortcuts Common to Most Applications
Shortcuts Common to Most Applications enter choose blue button in dialogue box (usually “enter” or “accept”) spacebar simulate a mouse click on focused object (i.e., the button or control that has a blue halo around it) command-shift-? Search application help. As of 10.5, this also FAYT searches available menu items. It also activates the menu …