Connect to Quickbooks using QODBC driver remotely via PHP - php

I have Quickbooks installed on a local machine. QODBC is installed and I can successfully connect to QB both with their VB demo test tools and via PHP running on the local machine.
I'm simply using odbc_connect("QuickBooks Data", "", "");
However, I need to connect back to this machine from a remote machine where PHP is running the same script. What should the connection string look like? Should I be connecting to QuickBooks Data or QuickBooks Data QRemote
It seems that QRemote is meant to work only if the Remote Client is installed on the remote machine. As I'm connecting from a Linux (non gui) machine, I don't believe that's possible. However, I have opened up the necessary ports to connect to QRemote and verified via telnet that it's open.
How do I connect? Thanks.

For now, QODBC cannot be installed on Linux machine. But if you know any driver or method to link Linux to call DSN/Driver on the machine, you should be able to use QODBC from Linux.
Please share if you are interested in a Linux client for QRemote which will connect to QuickBooks Data on the Windows machine. We are collecting votes for Developing/Adding feature for Linux Client or QRemote Driver(Linux). (To show you interest toward Linux client for QRemote, Raise a support ticket at http://support.flexquarters.com/esupport/index.php?/Tickets/Submit )
For now, you can use a windows box at the remote site.
I would request you to refer
Accessing QuickBooks Data Remotely using QODBC & QRemote. (Video)
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2517/
&
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2483/0/using-quickbooks-data-remotely-via-qodbc
FAQ & Knowledge base : http://support.qodbc.com/

I would suggest to use Windows machine instead of Linux machine, install PHP, use either IIS or Apache and install QODBC.
With QODBC , QRemote will get install automatically. QRemote can work locally and remotely.
If you have QuickBooks Install the the PHP machine, you can use QuickBooks Data QRemote and connect locally.
Incase you have QuickBooks on remote machine, you can configure the DSN "QuickBooks Data QRemote" and point to remote machine's IP Address.
QODBC driver is meant to be installed on a Windows machine to access the data.
Refer :
Accessing QuickBooks Data Remotely using QODBC & QRemote. (Video)
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2517/
How to use QODBC with PHP
http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2623/0/how-to-use-qodbc-with-php

Related

Desktop Application with Client Server Architecture That Syncs with Cloud Database

I have a web app running with PHP and MySQL.
I need to develop a desktop application which will sync data from the cloud DB whenever the client's computer connects to internet. If the client's computer is not connected to the internet, the desktop application will continue to work offline, using the local DB. The local DB is obviously a replica of the cloud DB.
I don't want to use Microsoft c# to create the desktop application. The desktop application needs to be cross platform and should run on Windows, Mac and Linux.
I have used XAMPP to create a local MySQL DB and have achieved the local app to sync with the cloud app. However, there are multiple problems to that approach.
-- Whenever my client's need to install the local app, they need to call me and I have to install XAMPP in their computer, setup the server, setup the local database and prepare it to sync with the cloud database with their account. They obviously aren't tech savvy so they don't know how to do it themselves.
-- If the client formats his computer, they will call me again and again and I have to set it up for them all the time, which isn't scalable in the longer haul.
-- XAMPP doesn't work when there are other processes running and using common ports. Example - Skype, Quickheal and other antivirus software running will prevent the SQL server to start. Sometimes what happens is that even after I have installed the local app, the client will install an antivirus software or some other tool and my local app will stop working on their computer.
Hence, I need to do away with XAMPP and switch to something else.
SQLite is out of question since it is serverless. I don't want to use .NET either. What I am looking for is this
I want to develop the database driven local application and package it somehow. I want to provider an installer file which will automatically install the database server, setup the database and everything else. The client will only login to the system in the local app and he doesn't have to setup any server. All the work that he does will be synced with the cloud server whenever internet connection resumes.
Please note that there is a master slave work involved. The client will have multiple terminal computers using the master system from other terminals and all these terminal computers will use the local database installed in the master computer.
I have tried to illustrate this with a diagram below
What's the best way to go about it?

How can I install ssh2 in Windows_NT (Azure web service) to connect VM from web service?

To make my question more clear, I'm breaking them into parts.
I have created webpage in Microsoft azure using app service {http://####.azurewebsites.net}
I have created virtual machine linux (Ubuntu) platform
Both the service (web and vm) are in the same account (#####outlook.com).
Now, I want to connect web service with vm. I have seen solutions connecting using ssh2 in php codes as shown here.
I tried this in my local system (ubuntu). It was working fine.
Now I want to connect to vm from web service. For this purpose how can I install ssh2 in webservice provided by azure.
I have logged into azure web service via ftp using terminal. It shows remote system is Windows_NT.
How can I install ssh2 into webservice so that I can access vm from webservice.
Any help appreciated. Thank You

Oracle Instant Client - with Docker and PHP

I have a web application written in PHP and using codeigniter, it currently runs on WAMP but I am soon moving to a linux based server and would like to use Docker.
The application has to connect to an Oracle database and currently I use Oracle Instant Client which works a treat.
When I move to Linux & Docker how will I integrate PHP with Oracle Instant Client?

Can oracle instant client be installed in an Azure Web App

We've installed oracle instant client into an Azure virtual machine and all is running ok. Our Oracle database is external to Azure.
However running a VM seems to be an overkill for our application and we are wondering whether we can connect from our PHP based web application to our oracle instance from an Azure Web App instead.
Is this possible and if so how?
thanks
Currently, we cannot install oracle instant client on Azure Web Apps. So we can leverage Azure VM to install oracle instant client.
You can connect Azure Web Apps- PHP with Oracle using OCI8 drivers, take a look at this reference: https://blogs.msdn.microsoft.com/azureossds/2016/02/23/access-oracle-databases-from-azure-web-apps-using-oci8-drivers-with-php/

Localhost Connection in Different OS

I have two operating systems installed on my computer. Mac and Windows. Currently i'm developing web based application using php, xampp, and sql server 2008.
I installed local server (xampp) on MAC os, and the database engine (sql server 2008) on Windows 2008.
How can I connect my xampp to the database in different OS?
Thank in advanced.
Assuming you are able to boot them simulatinously, the only thing you may need to do is to port forward your router using your db port.
You don't need to do some kind of xampp modification to connect to your database. Xampp is a single workstation solution for Apache, MySQL, php bundle. You are able to use any of them in collaboration with any other outer resource.
You may want to configure your phpmyadmin to connect your new db. Necessary config file is located here: /opt/lampp/phpmyadmin/config.inc.php

Categories