Shrink long URLs – Making large website addresses small

There are many tools out there to shrink long website addresses and turn them into small URLs. We have just launched our own here: mini2u.com. If you have a long website address, but a limited amount of space to post …
Read More »

Posted on

ASP Server Variables

We have decided to remove our Resources section in order to keep all useful code snippets and tips in our blog so we will post some of the content of those pages here. The first one is the ASP Server …
Read More »

Posted on

PHP Connection to MySQL

To access a MySQL database in PHP you can use the following script: <?php $dbhost = ‘mysql.myserver.net’; $dbuser = ‘myname’; $dbpass = ‘mypassword’; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die (‘Error connecting to mysql’); $dbname = ‘mydatabase’; mysql_select_db($dbname); ?> Remember …
Read More »

Posted on

DSN-Less Connection to MySQL in ASP

To access a MySQL database in ASP you can use the following script: Function getDBConn() Set conDB=Server.CreateObject(“ADODB.Connection”) conDB.Open “Driver={MySQL ODBC 3.51 Driver};” & _ “Server=mysql.myserver.net;” & _ “Port=3306;” & _ “Option=131072;” & _ “Stmt=;” & _ “Database=mydatabase;” & _ “Uid=myname;” …
Read More »

Posted on

A better way to handle POST and GET in PHP

To handle POSTed and GET variables in PHP is a bit of a pain. You’ve got to check that they are actually set, that they are not null and then, read the value. We use three functions to handle this. …
Read More »

Posted on

Getting path and location details in Javascript

A couple of quick tips for you to get path information for your page in JavaScript, assuming that the URL we are manipulating is http://example.com/test/test.php?i=1&b=2#3 To get the complete URL use: location.href returns http://example.com/test/test.php?i=1&b=2#3 To get the hostname use: location.hostname …
Read More »

Posted on

Get Current Directory Function in PHP

Something that many people ask for is an extremely simple piece of code and that is “How do I get the current directory in PHP?” Well, we use a function to do this and the code is as follows: function …
Read More »

Posted on

Domain Renewal Group Scam

Some of our customers have reported that they have received a letter from the Domain Renewal Group or the Domain Registry of America stating that their domain needs renewing. The company are using the WHOIS database information to get information …
Read More »

Posted on

Send ctrl+alt+delete to Remote Desktop

A common question that we get asked about our dedicated servers is “How do I send Ctrl+Alt+Delete to my server via a Remote Desktop session?” Well the answer is very straight forward: Whilst in your Remote Desktop session simply press …
Read More »

Posted on

Careful with your Comments in IE

Small tip today. Be careful where you place your HTML comments in Internet Explorer. Placing comments before you begin your HTML content can cause strange layout rendering. For example: <!– My Comment –> <html> <head> …. This is wrong and …
Read More »

Posted on