How can I host a PHP web application that used MongoDB as database.(I meant NoSQL)
I have built an applcation which is locally running fine, as I will be executing mongod.exe with db path specified.
How can I host the webapp with mongodb that can be accessible like any other normal PHP web app(or website)
Thanks.
Related
I need to connect to a remote MS sql-server, which allows connection only over Windows Authentication, using php. My actual setup is IIS10.0, PHP 7.5 and the latest SQLSRV driver for php.
The website is located in my local PC. If i set domain identity (e.g. EXTERNALDOMAIN\USER) in application pool identity, website is no longer running (error 503), probably because of no granted permission of external user for my local folder. How can i deal with this problem?
I have a Windows Azure VM running IIS/PHP. I have mapped an Azure file share to the VM. PHP always returns false when running is_dir('//server/share'). How can I map the Azure file share so that PHP can see it?
I was able to get PHP to see the mapped drive by adding the Azure storage account as an admin user on the server and using that account to connect as under basic settings for the web site under IIS.
See: Access mapped drive by IIS running asp.net mvc web application
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?
I created a website using ASP.net and it's accessing MySQL through visual studio using IIS and there are some web services developed in PHP [tested using Apache Server] for the android application. Now, I am able to run both Asp.net website and android application using the same host by running both the servers on the same machine.
But how can I use the same MySQL database for both the purposes. How can I redirect the requests for both asp.net web services and php requests to the same database?
It depends, but generally, connection strings in Asp.Net are stored in a file called web.config, in the root folder of the application.
I don't know if php have a central place to store connection strings, but in both cases you need to change that.
Is it possible to create an environment on local machine( i.e. localhost) where we can create and consume web service using PHP?
Is there any flow to create a web service like environment on localhost?
I would like to create an environment on localhost for web services where local machines, on intranet, get connected to main server (here again it's local machine) and can consume web services.
Like on internet we have Web Servers from where we can create and consume web services, Can we do the same on localhost?
Edit:
I am using WAMP with
PHP 5.3 Apache 2.* MySQL 5Windows 8
It is easy to create a local web service. You will need a local web server (like IIS or xampp) to execute PHP locally.
Access you PHP application in your browser using http://localhost/<yourApp>.php and provide any webservice at a local URL as well, e.g. http://localhost/<yourService>.php. Your application can then access the webservice using the local URL.
This works both for REST or SOAP-style services.
EDIT: Your edit shows that you already set up a local environment to develop and test webservices. You should really be more specific in your question, maybe you are looking for a tutorial to create web services with PHP in genereal. If so, Google will be your best friend: https://www.google.de/#q=create+web+service+using+php+tutorial