Open PHP as a Text File Using .htacess

Place this code in the .htaccess file to disable processing of PHP files in a folder. This will remove the PHP handlers in Apache forcing the browser to load the PHP file as a text file. You can use this to secure folders where upload is allowed to prevent executing uploaded PHP files. RemoveHandler .php .phtml .php3 […]

Mr. Speaker: Debating Business Issues in Less than 200 Words

The first of three debates that I wrote for a business class a few years ago. The purpose of the assignment was to debate a business issue in less 200 words. I hope some Business Administration students will find this helpful.   Debate 1: Is it personal? or is it just business?   Mr. Speaker, we are […]

Commenting HTML, CSS, PHP, Javascript, SQL & ASP

Use the tags below to enter comments or notes in your HTML, CSS, PHP, JavaScript or ASP code: Language Single/Multi-Line Start with End with Example HTML Single & Multi-Line <!– –> <!– This is an HTML Comment –> PHP Single Line // // This is a PHP Comment PHP Mutli-Line /* */ /* This is […]

PHP: Country Name from IP Address

Here’s a PHP script that demonstrates an easy way to get a country name or code from IP address using pure PHP. Included in the file: GeoIP.dat: a binary databases of countries and IPs maintained by MaxMind.com. The database is updated monthly and has a 99.5% accuracy rate. You can always get the latest version here. geoip.inc […]

Special ALT Key Symbols & Characters ~ (Alt+1=☺)

Did you ever wonder how you can type a heart symbol ♥, a smiley face ☺, a little circle • or even the copyright symbol © ? Wonder no more. You can type these special characters by holding the ALT key on your keyboard and entering the symbol’s number. For example to type a smiley […]

The Five Marketing Environments – An Example

When planning a marketing campaign marketers have to take into account the changes in the marketing environment, including the competitive, social-cultural, technological, economic and political-legal environments. Here is an example of the changes that happen in these environments and their effect on Anheuser-Busch’s Budweiser marketing strategy.  

Center Background Image Using CSS – One Line of Code

Here is a little snippet of CSS code that you can use to center a background image. The background image will be fixed in its center position even if you scroll up or down the page. Place this CSS code in the HEAD section of your HTML code     Don’t forget to change background.jpg […]

Extract Links or URLs from A Web Page – Visual Basic 6 (VB6)

This is an easy way to extract links from a web page using a web browser control and a reference to Microsoft HTML Object Library. This code will extract all links in the href property of the A tag and save them to a text file named urllist. Create a form. Add reference to Microsoft Html Object Library. […]