Install the Most Popular Web Applications with 1 Click

InstantInstall allows you to install 9 of the most popular web applications by just uploading a simple PHP file to your server and pointing your browser to it.

You just need remote downloading enabled on your server (file_get_contents specifically) and the memory limit to a higher amount (to avoid script interruptions due to running out of memory).

Currently you can download and install the following PHP scripts using InstantInstall:

  1. WordPress – the most popular blogging platform
  2. bbPress – forum software, created by the WordPress crew
  3. Chyrp – lightweight blogging engine
  4. Drupal – CMS
  5. Joomla – portal engine
  6. phpBB – forum engine
  7. PrestaShop – eCommerce engine
  8. Symphony – web PHP framework
  9. Vanilla – forum software

[ad name=”In Post (LU)”]

Credit Card Validation Function

Credit Card

Whethere you are building a shopping cart or just requesting your customer’s credit card number for some purpose, we are constantly faced with abusers that fill invalid or fake credit card numbers. This little function courtesy of SoftwareProjects.com will help you avoid that.

function validCC($cc_num) 
{ 
  $pattern = "/^3[47]d{13}$/";//American Express 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 
  
  $pattern = "/^([30|36|38]{2})([0-9]{12})$/";//Diner's Club 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 
  
  $pattern = "/^6011d{12}$/";//Discover Card 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 
  
  $pattern = "/^5[12345]d{14}$/";//Mastercard 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 
    
  $pattern = "/^4d{12}(ddd){0,1}$/";//Visa 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 

  $pattern = "/^30[012345]d{11}$/";//Diners 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 

  $pattern = "/^3[68]d{12}$/";//Diners #2 
  if (preg_match($pattern,$cc_num)) 
  { 
    return true; 
  } 

  // Not valid 
  return false;  
}

[ad name=”In Post (LU)”]
Usage is as follows:

echo validCC("card_number_here");

Of course, it can’t check if the credit card really exists and if it has any ballance, because that’s confidential information, but at least you won’t get random numbers anymore.