Skip to content
Advertisement

How to open DB connection in Openshift? [closed]

This is my dbcon file in PHP. Basically, I need to connect my PHP application with openshift MySQL DB. Here’s what I did.

JavaScript

This gives me an error on openshift but works for other PHP apps. I get nothing on error explanation only as Error: { …blank space… }.

Advertisement

Answer

I’ve made it to work by doing this.

Global Use

JavaScript

Alternatively

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement