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.
Related
I wanted to convert my php application into desktop application to run it as an .exe file by just double clicking on it. For this I found many third party softwares like bamcompile,wapache,Php desktop chrome,etc. From these the most compatible and the one which fulfilled my requirements to accountable extent was php desktop chrome.The rest both had their drawbacks-
1.Bamcompile-It runs the application on commandline and does not show GUI,so I was not comfortable with that.
2.Wapache-It runs the application but it run it in Internet explorer browser so it cannot run the framework supported by my application.I need Google Chrome for that.
3.Php desktop chrome- This fulfills my requirement to a great extent but the problem is that it does not supports sql server database.I thought about using sql server as database because I don't want to install xampp/wamp on every machine where I want to use my application.I added the drivers needed for using sql server to php desktop/ext folder but I am not finding the php.ini in php desktop application where I can add extension to it.So it there any way that I would not have to install xampp/wamp or any other application on client machine to run my application.
Problem with converting the application into exe file is solved with php desktop. That means when I start only mysql from xampp my application runs perfectly fine ,there is no need to start apache for that.So now I want to do something that can include my database as well in the php desktop chrome folder and supporting application into it as well.So that I don't need to start phpmyadmin always.Or is it possible to install only phpmyadmin/MySQL without xampp and if yes how to configure that?Because I installed that individually but I don't know why is it showing Access denied.
Thanks in advance.
I have tried to provide as much details as possible ,in case you need to know anything else,please let me know. I have tried all possible way please help me out.
Your need is quite exotic. Try phpinfo() in your application - then you will find where your php.ini is served from. That might put you on track. Another thing to try, if your database is not too big, SqlLite database in your project, because it is bundled with php and does not require a separate server.
I would like to access our Domino Databases from php.
My php5 is running in an Linux environment OpenSuse and for development Debian based System. Domino Server 8.5.1 is also running on a OpenSuse Server.
Currently I'am accessing the Databases via parsing the web pages from Notes, but that is a horrible way to do that.
Are there any ways or ideas to access Notes an more comfortable way?
Yes, there are plenty of ways. You can use Domino Designer to write a web service on the Domino server to expose the data that you want, and access the service that from your PHP code. You can use REST APIs if your Domino server can be upgraded to 8.5.3 or higher. You might be able to install Domino on your OpenSuse server and have your PHP code invoke Java programs that use the Notes classes in Notes.jar to do the work, or you can actually do that without installing Domino, but you'll have to use the remote version of the classes in NCSO.jar and your server will have to enable CORBA. You can use ODBC and NotesSQL as discussed here. I'm listing that last even though you did put an ODBC tag on your question because Notes databases are not relational and I find thinking of them that way to be too limiting, but if your data fits a relational model and you're comfortable with it, then it might be your best choice.
What Richard said, except I would start with this link for REST APIs. That takes you to the latest product documentation. Richard's link takes you to a slightly outdated page on OpenNTF.
I have a server running oracle linux and has Oracle WebLogic. How can I set it up so that if you go to my website on port 80 it runs of files on WebLogic. I only have command line access, and the reason im using web logic is because apache wont work on oracle linux.
I dont plan on changing OS.
Connah
See if this could help you: http://quercus.caucho.com
Quercus is Caucho Technology's fast, open-source, 100% Java implementation of the PHP language. Quercus is a feature of Caucho Technology's Resin Application Server and is built into Resin - there is no additional download/install. Developers using Resin can launch PHP projects without having to install the standard PHP interpreter (http://www.php.net) as Quercus takes on the role of the PHP engine.
I hope you are not waiting for an answer but for all folks who came here to find Java - PHP integration here is an article on oracle.com -
http://www.oracle.com/technetwork/articles/dsl/oracle-java-zend-server-152557.html
Now I would mention 2 obvious things:
You need to know both Java and PHP.
If you are using Oracle 11/12 G with PHP this is the best way to do so because the other way doesn't work and is not even maintained.
I generally use linux servers and program in PHP (plus other associated technologies) with mysql databases. A client has existing ASP sites using MSSQL databases on a Windows server and wants some new sites created on their server using their MSSQL database as the main data source. I have used ASP in the past but much prefer PHP so would rather use this.
I just wanted to confirm that i'm right in saying as long as the server has PHP installed (which it does) then there's no reason I can't create a PHP site on the Windows server and just use different connectors to connect to the MSSQL db (rather than what i would usually use for connecting to a MYSQL db). Presumably (other than the different connect/query code) this would work in pretty much the same way as with a linux setup with mysql and i could then code the site in PHP but use their existing datasource?
I would be extremely grateful if anyone could confirm i'm right in saying this and if there's any other issues that might cause any problems?
Thanks so much for your help as ever,
Dave
You can enable MSSQL support in PHP on Windows. The default Windows PHP install has the php_mssql.dll extension commented out in the php.ini file. Uncomment that line, restart Apache, and it should work.
There is a supporting DLL called ntwdblib.dll that you may need to find a replacement for, as the version included with PHP may be outdated and won't work with newer versions of SQL Server. (I had this problem when setting it up.)
There are two different libraries to connect to SQL Server from PHP:
The legacy mssql extension, which has been discontinued on Windows
Microsoft's sqlsrv extension, which only works on Windows
I've basically worked with the second one and I can say it's a very interesting product. It's robust, it has a very nice interface and it's totally up-to-date. But what I like most is that it has very nice features. E.g.:
It can return dates as PHP DateTime objects
It provides a PDO driver
The only drawback of using SQL Server is that there isn't an easy way to write a cross-platform app but I understand it isn't problem in your case.
Yes, it is rather straight forweard.
You need to have the mssql library activated in php.ini. Which can be troublesom.
MSSSQL docmentation
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.