Connect PHP (Google app engine) to SQL Server (Cloud SQL) - php

I would like to know if it's possible to connect PHP running on Google App Engine to SQL Server 2017 running on Google cloud SQL(same project)?
As far as I can see there is no extension available for PHP to connect to SQL Server, or maybe, to blame is my lack of experience with GC’s products.
I have done this in the past but with MySQL, and that was really easy but now I seem to be stuck.
Is there a solution to this problem or should I try a workaround using a container?
Thank you!

Related

How to run php with sql server?

I am creating an android application that uses PHP and SQL Server 2008. I have successfully connected these with the help of Wampserver on my machine and Sql Server on remote location.
The problem is now I don’t know where to run PHP webservice so that I can access PHP webservice remotely at all times through my android application.
I tried using the hosting site www.bytehost32.com but it didn’t work.
I also tried to install PHP on IIS and run on same server as the database but could not find an appropriate solution that suits my requirement.
I think 000webhost.com id quite easy to setup and reliable (and free). (If you're interested .tk domain registration is free).
It depends on which version of PHP you're using, but if you're using PHP5+ you can use Microsoft's SQL Server Driver for PHP.
Use this link :http://sqlsrvphp.codeplex.com/
Make sure you use version 2, which gives you the PDO functionality as well as the procedural style.

Building Android app for running PHP and MySQL on Android Tablet

I want to run PHP + MySQL server on my Android Device. People seem to suggest applications like KSWeb and Bit Web.
Other solutions suggested are that I install an application that allows me to run Linux on Android. This requires the Android Device to be rooted. :(
I don't want to use any other application for this. So I would like to build an application similar to KSWeb myself. I have searched around for how to start building such application but it has not helped so far. Any guidance on how to go about this?
I mean how is it possible for KSWeb to build something like this, without root. :O
Any guidance on how to go about building this application would be very helpful.
Somewhere I was told to get the binaries compiled for ARMv6, but I don't know how to start.
Can NDK be of any use to me?
Please Help.
I am currently maintaining free and open source web server solution stack package, consisting mainly of the Lighttptd HTTP Server, MySQL database, PHP programming languages. It is still at beta stage.
It can give you a basic idea about how to develop this type of stuffs in android.
Yes, its true binaries must compiled for ARM CPU in order make file executable.
And you can use NDK but i recommend you to go with alternatives like CodeSourcery or Linaro
Here some starter tutorial for cross compiling Linux program to ARM
ARM cross-compiling
Cross compiling static C hello world
Anyway you can read this article how i cross compile for DroidPHP
Cross Compiling for DroidPHP
here is some articles regarding cross compiling PHP, Nginx, Lighttpd on arm6
Cross compiling PHP
Cross Compile PHP 5.3.3 to ARM
Error while compiling PHP for ARM (not reverent but helpful)
starting with php cross compile
Cross Compile Lighttpd + PHP + MySQL for ARM (2) (in Chinese but translate it to English)
Cross compling LIghttpd
lighttpd cross compiling
Cross compiling for ARM9 doesn't work
Cross compiling Nginx
Nginx CMake
I am New to android but something sounds wrong about all this.php is a server side scripting language. Now you are going to run around from hot spot to hot spot hosting I guess a web service backed by a mysql database. Do you have a static ip? Mysql is an excellent choice for a low end dbms if sqlite was not already built into droid. Like I said I am New and it's probably me but this just sounds wrong.
From the answers I see someone talking about compiling php which would make it no longer script.
If you're open to use something other than PHP/Mysql, Python may be a good option. You can listen to sockets and send info through Python, which is supported through SL4A app.
Apparently CherryPy works on Android: http://www.defuze.org/archives/228-running-cherrypy-on-android-with-sl4a.html
There's Django and probably others, but those may be more complex to set up.

SQL Server / PHP / Web Based Admin Tool - What are some phpmyadmin-like tools for SQL Server?

I'm trying to find a phpmyadmin-like db administration tool for SQL Server for a LAMP environment. I've only been able to find similar tools that exist for a IIS/ASP environment.
Try http://www.adminer.org/
it supports mssql as well. Although its written in PHP.
There is a project called phpMSAdmin, but I have no idea if it's finished enough to be useable. The current release is 0.18 from july 2006.
http://www.phpmsadmin.org/
http://sourceforge.net/projects/phpmsadmin/files/
http://freshmeat.net/projects/phpmsadmin/
Perhaps the project could be revived? Anyone?
SQL Server Management Studio Express.
http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en
It's not web based, but I'm not aware of any web-based ones for SQL Server

Running Mantis on MS SQL Server

As a part of the technology standardization in the organization I work at, we're moving from MySQL and Linux to MS SQL Server and Windows. One of the PHP-based applications that we use is Mantis, a bug tracking system available at http://www.mantisbt.org
Has anyone had any luck getting Mantis to work completely with MS SQL Server? I've got Mantis 1.1.8 working for the most part but file attachments do not work, while Mantis 1.2.1 does not install on MS SQL Server.
Here is a step by step guide, maybe this helps out: http://gonfva.blogspot.com/2010/03/mantis-on-sql-server.html
The mantis page states:
It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver.
So it is possible, and you might want to use the official mantis support channels.
I can confirm also that Mantis 1.2.x does not install on MS SQL Server. We tried at work but had to move to a LAMP stack to get 1.2.x running. Seems to work with 1.1.x versions.
Also see this forum thread: http://www.mantisbt.org/forums/viewtopic.php?f=3&t=18827
As part of the MantisBT development team I can tell you that although there is code support for MS SQL Server, there are many issues with it. The cause of the problem is that none of the developers - or contributing users - are running an SQL Server installation and we're not aware of any free setups which we can use to the SQL Server.
Long story short: it probably doesn't work out of the box, but you might force it into running by patching it. If you do, please contribute those changes back, as there are many users which reported problems with SQL Server.
I confirm that Mantis 1.2.6 IS successfully installable and usable on IIS 7.5 + PHP 5.3.6
Tips: http://thegrayzone.co.uk/blog/2011/03/setting-up-mantisbt-on-iis-7-w-sql-server/

Looking for a web server that include the following technologies ColdFusion, PHP, MS SQL Server, MySQL

Can anyone explain if it is possible to have a web server for all of these technologies:
ColdFusion, PHP, MS SQL Server, MySQL
I have a web developer insisting that they require all of the above however it doesn't quite make sense to me.
Any help or clarification is appreciated.
It's possible, but MS SQL being a Windows only product, you'll need a Windows server, preferably one from the Server family (Windows Server 2003 or 2008). PHP and mySQL can run happily on Windows, I've got them both running on the Windows 7 machine I'm writing this on.
I don't know whether a hosting provider will run all these things on the same server in a standard (cheap) package - you may have to have one tailor-made. But that depends entirely on your situation, of course.
As to whether this makes sense, though - I don't know. Is this a new product being developed? Then it sounds very strange to need two different database platforms, and two entirely different web development environments. If it's to integrate a number of existing products, it may make sense.
It is possible to have all of those technologies installed on a Windows server
It is possible to make a connection to both MS SQL and MySQL via both PHP and ColdFusion.
Providers usually have PHP and MySQL as combination, but the bigger providers have also windows based hosting with an MS SQL database server, so a connection from the PHP linux server can be made to a MS SQL server (you do need some special library installed though I read).
Not many providers offer ColdFusion hosting, at least not in a shared manner. There are a few, godaddy to say one among others such as hosting.com, take a google around the world to find them.
If you want to do this yourself, you could get a Windows VPS and install all the required software.
ColdFusion exists now also opensource, something not many seem to know: Railo
It is possible to have all of those installed. We have a LAMP server that runs all of that but MSSQL. You could have a Windows box run all of them too. Not sure about MSSQL on Linux, but I know its definitely possible to have all that on a Windows box.

Categories