Appfog /tmp folder
Jan 29, 2013AD:
Thanks Appfog /tmp folder
1 |
$_SERVER['DOCUMENT_ROOT'].'/../tmp' |
My wp-config.php for WordPress
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
/** Setup for AppFog **/ $services = getenv("VCAP_SERVICES"); if($services !== false){ $services_json = json_decode($services,true); $mysql_config = $services_json["mysql-5.1"][0]["credentials"]; define('DB_NAME', $mysql_config["name"]); define('DB_USER', $mysql_config["user"]); define('DB_PASSWORD', $mysql_config["password"]); define('DB_HOST', $mysql_config["hostname"]); define('DB_PORT', $mysql_config["port"]); define('TMP_FOLDER', realpath($_SERVER['DOCUMENT_ROOT'].'/../tmp')); #local setting }else{ define('DB_NAME', 'DatabaseName'); define('DB_USER', 'UserName'); define('DB_PASSWORD', 'Password!'); define('DB_HOST', 'localhost'); define('TMP_FOLDER', '/tmp'); } |
AD:
No Comments, Comment or Ping
Reply to “Appfog /tmp folder”
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.