Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Will PHP work with Win2k and mySql and MSSQL

Status
Not open for further replies.

tf

Technical User
Aug 10, 2001
1
FR
I am looking to buy a pre-exsisting application that uses mySQL and PHP. However, I am currently running a Win2k server. Can I incorporate this existing PHP code to work with w2k, if I already use ASP and want to keep my current applications also?

Can you also tell me if I would need mySQL or SQL, or if it would matter?
 
Absolutely!

The amazing thing about open source software is that other people from non native operating systems (such as Windows, where the language is not developed), and will port it to those systems.

Anyway, PHP works fine on Win2k. I would suggest several things.

1. Go to and search for a program called PHPTriad. It is in version 2.1 right now, and a downloadable executable. Just download it and install it.

It will set up PHP, Apache, and mySQL on your system. Works like a charm.

Second question:

I am not 100% sure about PHP and ASP working together, seeing as they are too totally different languages. What type of application is written in ASP? How hard would it be to port over PHP?

Third question:

If the application you are buying is made only for PHP, and the database code is not abstracted (meaning it will work with any database), then yes, you need mySQL. PHP also works with mssql, so if the PHP code is abstracted, then yes, it will work with mssql.

I think that answers your questions.

Hope this helps.

-Vic vic cherubini
krs-one@cnunited.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash
====
 
ASP and PHP can easily coexist on a Win2K server, with IIS4 or 5, at least. Also, to a certain extent, it is no problem to mix the two inside a particular web application. For example, you could have a dynamic webpage output from ASP, but it contains a form, which submits to a PHP page as it's form handler. Now if you actually want to include ASP and PHP tags inside the same file, that won't work, because IIS only allows you one application mapping per file type. However, you might be able to work out a scenario of using includes to run output from one type into another. That will take a bit of experimentation, though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top