Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 902483 Details for
Bug 1104955
Apache based applications are unable to read DB connection info from the environment whenever DB carts are added after the initial app-create
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
mysql.php file
mysql.php (text/plain), 1022 bytes, created by
Yan Du
on 2014-06-05 10:46:54 UTC
(
hide
)
Description:
mysql.php file
Filename:
MIME Type:
Creator:
Yan Du
Created:
2014-06-05 10:46:54 UTC
Size:
1022 bytes
patch
obsolete
><?php > header('Content-Type: text/plain'); > $con = mysql_connect(getenv("OPENSHIFT_MYSQL_DB_HOST").":".getenv("OPENSHIFT_MYSQL_DB_PORT"), getenv("OPENSHIFT_MYSQL_DB_USERNAME"), getenv("OPENSHIFT_MYSQL_DB_PASSWORD")) or die(mysql_error()); >mysql_select_db(getenv("OPENSHIFT_APP_NAME"), $con); > > mysql_query("CREATE TABLE IF NOT EXISTS factory(id INT UNSIGNED NOT NULL, data TEXT, PRIMARY KEY(id));", $con); > mysql_query("COMMIT", $con); > $result = mysql_query("SELECT * from factory;", $con); > $num = mysql_num_rows($result); > if($num == 0) { > mysql_query("INSERT INTO factory VALUES(1, '1');", $con); > } > if(empty($_GET["version"])) { > $result = mysql_query("SELECT * from factory;", $con); > $row = mysql_fetch_array($result); > echo "version " . $row[1]; > } else { > mysql_query("UPDATE factory SET data=".$_GET["version"]." WHERE id=1;" , $con); > echo "The mysql factory is modified"; > } > mysql_query("COMMIT", $con); > mysql_close($con); >?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1104955
: 902483