Web Hosting ArticlesArticles, tips and news on web hosting, including dedicated servers, colocation and virtual hostingHow to use PHP in pages with a .html extension (or any other)- October 24, 2005 To be able to use php code on a page with an extension other than .php, you need a server which supports .htaccess files. To add an extension to be parsed for php, create or edit a file called .htaccess (with the dot first) containing the following line:AddType applicationx-httpd-php .html .moo .htmThis tells the server to check for php code and execute it in files with extensions .html, .moo or .htm.http://whn.vdhri.net/2005/10/how_to_use_php_in_pages_with_a_html_extension_or_a.html Random Colors in Flash- October 19, 2005 Want to set something to a random colour in Macromedia Flash Once upon a time I did, and I found this code which did the trick.http://whn.vdhri.net/2005/10/random_colors_in_flash.html How to find the SHA1 hash of a string in Ruby- October 19, 2005 To find the SHA1 hash of a string, first include the library 'digestsha1' then use the code below, where 'password' is the string we're computing the hash of.require 'digestsha1' ...password = "blah"sha1_pass = Digest::SHA1.hexdigest(password)http://whn.vdhri.net/2005/10/how_to_find_the_sha1_hash_of_a_string_in_ruby.html How to use the QueryString in ASP- October 19, 2005 This article tells you how to pass variables to an ASP page using the QueryString, and how to access them from that page.Have you ever seen a URL which looked like "www.example.compage.aspmode=1&style=red" Well, this page is being passed variables and their values through the QueryString, here the variables "mode" and "style" are being passed, with values "1" and "red" respectively. The question mark indicates the start of the query string...http://whn.vdhri.net/2005/10/how_to_use_the_querystring_in_asp.html |