|
|
|
Thursday, 22 July 2010 09:21 |
// same mysql connection file for development and production, or more servers
// can you use the global $_SERVER['HTTP_HOST'] to identify your current active server, simple huh??
// this simple scrip identify your server by address
// if you want more serves, just add a elseif clause
//first - your development server
if ($_SERVER['HTTP_HOST'] == "127.0.0.1")
{
$hostname_content = "localhost";
$database_content = "YOUR_DATABASE";
$username_content = "YOUR_USER";
$password_content = "YOUR_PASS";
$conn = mysql_pconnect($hostname_content, $username_content, $password_content) or trigger_error(mysql_error(),E_USER_ERROR);
}
//second- your production server
else
{
$hostname_content = "YOUR_PRODUTION_SERVER";
$database_content = "YOUR_PRODUCTION_DATABASE";
$username_content = "YOUR_PRODUCTION_USER";
$password_content = "YOUR_PRODUCTION_PASS";
$conn = mysql_pconnect($hostname_content, $username_content, $password_content) or trigger_error(mysql_error(),E_USER_ERROR);
}
?>
 Read more: |
|
|
Thursday, 22 July 2010 04:00 |
 | About Hyperfire
An arcade shooter than reminisces of days of old, this simple game is very well put together. The objective is simple: shoot as many UFOs as you can. The authenticity of the title is quite impressive, and you’ll remember the 1980s just from picking it up. |
Read more: |
|
Wednesday, 21 July 2010 04:00 |
 | About LightFrame
Powerful and flexible image framer. LightFrame is based on core Mac OS technologies, it contains various material types and built-in textures library and provides simple frames as well as fully customizable unique frame defined by vector paths. |
Read more: |
|
|
Wednesday, 21 July 2010 04:00 |
 | About Quiet Read
Sometimes, when I am browsing the web, I want to store a link for later. There are note taking applications and everything-buckets to do that, but I wanted something light and simple. Simple as dragging a link onto a menu bar item to store it. Quiet Read is available in Traditional Chinese, Polish, Greek, French, German, Italian, Japanese, Korean, Dutch and Spanish. |
Read more: |
|
Tuesday, 20 July 2010 04:00 |
 | About ReelNQ
Batch video converter allowing you to convert a list of videos automatically without having to manually process each file. Supports iPhone, iPod, Apple TV and more. Simple drag and drop support for adding movies to the batch queue. |
Read more: |
|
|
|
|
<< Start < Prev 1 2 Next > End >>
|
|
Page 1 of 2 |