Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
Coding Standards
=============================== MercuryBoard Coding Standards =============================== Please follow these guidelines when modifying or adding to the MercuryBoard source. They are slightly modified PEAR (http://pear.php.net) coding standards. Indenting and Space ===================== Use an indent of 1 tab. After the first non-tab character on a line, spaces should be used for whitespace. There…
Convert Text to VarChar
Example: IP is varchar(50) and Hostname is Text Not sure why you would ever have a need for this but this is an example that works. More practical use
C# ASPX – Force SSL
Why would I need this? If you have a page that loads in HTTP (unsecure) and HTTPS (secure) you may have a need for this when requesting information on a form that involves private information. What is “Private” information Up to your discretion but a site (http://support.exware.com/ssl.html) that I found…
Page View Details
DISCLAIMER: Before you put this script in place make sure you have some kind of disclaimer on your site to state what kind of data you record from the visitor.