As I connect APP OpenShift php with MSSQL remote? - php

I would like to know how to compile mssql in php5.4 of Openshift? I've heard of freetds, but really I'm a bit of a novice with this and have not managed to make it work.
I want to connect to a remote server from my application MSSQL OpenShift php.
you can with a rhc code or install a DIY cartridge?
please help

OpenShift Online does not currently have any of the modules that you would need to connect to MSSQL installed. You have a couple of options:
Visit https://openshift.uservoice.com and add a suggestion for installing modules that would enable you to connect to a remote MSSQL server from the PHP cartridges.
Write an API in front of the MSSQL database that enables you to interact with it in the way that you need to. Maybe using another hosting provider that has the MSSQL extensions installed or a windows hosting provider,etc

Related

php sybase install on mac

I have installed the entire lamp stack with homebrew on my macbook pro. I am in need of getting the sybase module installed but am having the worst time trying to figure it out. I have done upteen google searches and read over the php.net section on sybase:
http://php.net/manual/en/sybase.installation.php
I have no clue when it says:
To enable Sybase-CT support configure PHP --with-sybase-ct[=DIR]
I was hoping to reach out to someone who has enabled/installed this on a mac or unix environment. Hope you can let me know the steps I need to run to get this up and running so I can use:
sybase_connect();
Thanks in advance.
You can also use FreeTDS to connect to Sybase from your Mac's PHP. Will be much easier than trying to configure the Sybase-CT library.
That section is asking for where on your system the Sybase installation is. To connect to a Sybase DB, you need to have either the client piece, SDK, or server piece installed on the local system.
The Sybase home directory includes the connection libraries that PHP is looking for.

XAMPP PDO Oracle, Cant make it work together

i want to make connection of PDO to oracle database.
i tried all day to set it up, i am using xampp, installed latest version of xampp.
i tried to follow this guide: Installing PHP and the Oracle Instant Client for Linux and Windows
Also have tried to follow this guide: Activate Oracle on XAMPP for Windows : OCI8
Please anyone help me guide me to the right direction. I am stucked and it is a must to do job, cuz all my work relies on it.
the server i want to deploy my file, runs on oracle database, thats why i want to tryout the oracle in my local PC.

Connect to Oracle8i from PHP

I am building a web application on a Ubuntu Server 13.10 running Apache and PHP to connect to a RHEL production server on our LAN running Oracle8i (Oracle8i Enterprise Edition Release 8.1.7.4.0).
I have only connected to MySQL in the past so Oracle is a bit of a learning curve PHP wise. I have searched online but have found contradicting articles so looking for some feedback on any prerequisites required to be able to connect PHP to the Oracle server.
For MySQL it was as simple as installing the php5-mysql package and using mysqli_connect(ip,user,password,db); to connect. Are there PHP packages required for Oracle? Some sites mention a tsnames.ora file and others don't, and other sites are aimed towards newer Oracle versions (upgrading Oracle is not an option).
I am basically looking for some quick start tips on how to even get connected to the Oracle server.
Oracle uses the php5-oci8 package to enable the PHP Oracle connections. It should be just as simple to install that package and get it working.
Here's a helpful page on how to do that within Ubuntu.

How to connect to a remote MSSQL database with PHP on Linux?

I've got a problem and there doesn't seem to be a strait forward solution.
I'm running a Linux server with PHP and need to connect to a MSSQL database on a remote server (I don't have control over this server). Speaking to my host, they say that it's not possible eto install the MSSQL extensions on a linux box as they are only available on Windows Servers. So, I'm looking to see what other options i have.
Any ideas how I can do this on a linux box?!
it's not possible eto install the MSSQL extensions on a linux box
They lied. It is possible, but it requires FreeTDS to compile.
Other solution is to use other host (with windows) to act as proxy to MSSQL server, and communicate with it by SOAP/REST
you have to do it via an ODBC connection.. odbc_connect() etc etc.. Microsoft has drivers for this http://www.microsoft.com/en-gb/download/details.aspx?id=28160.. (edit) I have done this without any of the issues posted... the php.net website for odbc_connect even gives mSSQL examples in the manual http://php.net/manual/en/function.odbc-connect.php
Maybe this helps, send it to your server host:
http://pointbeing.net/weblog/2010/05/successful-microsoft-sql-server-support-for-php-on-linux.html
Commonly a database module is installed but in your case you could try to use a REST-API to talk with the MSSQL database. But that must be installed on a second server e.g. the database server itself.

Mysqli and OCI8 activation on Redhat Linux

I am a novice developer in web, and I have the following situation:
One of my customers wants to 'activate' php extensions for mysqli and oracle (oci8) on a Redhat Linux server.
The actual goal would be to be able to communicate (connect) with a remote Oracle database , which is located on a remote Unix server.
What do I have to do in order to implement those requirements?
Also note that any actions have to be available for command line, since I only have remote access to the Redhat server.
Thank you in advance.
p.s:
The Redhat server already has the following installed:
Oracle 10g.2
php 5.1.6
Apache 2.2.3

Categories