473,385 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using PHP in a .Net environment?

Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh
Nov 15 '05 #1
6 1187
Josh:

I can't speak to PHP, but for the last three weeks, we've been running a
pretty large app on a MySQL backend.

These may help...

http://www.mysql.com/articles/dotnet/

http://sourceforge.net/projects/mysqlnet/

For what it's worth,getting stuff done web wise in .NET is a breeze. One of
the cats in networking I work with is a died in the wool "Everything
Microsoft Sucks" type. He worked on an inventory app for in-house tracking
running on MySQL, using PHP and it took him just under a month to get it
done. We were trying to use Infragistics to give the new one a nice UI, and
once we got the connection working, the re-write, with a much more
compelling front end took all of about 8 hours. The disparity probably
isn't totally typical, but you can definitely do a lot with ASP.NET, and do
it very quickly.

Hope this helps.

Bill
"Joshua Coady" <jo**@coady.us> wrote in message
news:MP***********************@msnews.microsoft.co m...
Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh

Nov 15 '05 #2
That would help, except that I dont have to do anything specifically
with MySQL. The PHP code does all the DB stuff. But thanks for the
article link, it will be useful for another project.

Josh

In article <eR**************@TK2MSFTNGP09.phx.gbl>, do********@nospam.comcast.net says...
Josh:

I can't speak to PHP, but for the last three weeks, we've been running a
pretty large app on a MySQL backend.

These may help...

http://www.mysql.com/articles/dotnet/

http://sourceforge.net/projects/mysqlnet/

For what it's worth,getting stuff done web wise in .NET is a breeze. One of
the cats in networking I work with is a died in the wool "Everything
Microsoft Sucks" type. He worked on an inventory app for in-house tracking
running on MySQL, using PHP and it took him just under a month to get it
done. We were trying to use Infragistics to give the new one a nice UI, and
once we got the connection working, the re-write, with a much more
compelling front end took all of about 8 hours. The disparity probably
isn't totally typical, but you can definitely do a lot with ASP.NET, and do
it very quickly.

Hope this helps.

Bill
"Joshua Coady" <jo**@coady.us> wrote in message
news:MP***********************@msnews.microsoft.co m...
Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh


Nov 15 '05 #3
I'm not sure if I was clear enough. Let me rephrase: Is there an easy way to call a PHP method or script from within C#?

Josh

In article <MP***********************@msnews.microsoft.com> , jo**@coady.us says...
Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh

Nov 15 '05 #4
something like Process.Start("...") ?

"Joshua Coady" <jo**@coady.us> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
I'm not sure if I was clear enough. Let me rephrase: Is there an easy way to call a PHP method or script from within C#?
Josh

In article <MP***********************@msnews.microsoft.com> , jo**@coady.us says... Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh

Nov 15 '05 #5
And use Process.StandardOutput to read the results? This has potential...

In article <#N**************@TK2MSFTNGP10.phx.gbl>, net.galador@ld says...
something like Process.Start("...") ?

"Joshua Coady" <jo**@coady.us> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
I'm not sure if I was clear enough. Let me rephrase: Is there an easy way to call a PHP method or script from within C#?
Josh

In article <MP***********************@msnews.microsoft.com> , jo**@coady.us says... Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh


Nov 15 '05 #6
sure ;-)
"Joshua Coady" <jo**@coady.us> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
And use Process.StandardOutput to read the results? This has potential...

In article <#N**************@TK2MSFTNGP10.phx.gbl>, net.galador@ld says...
something like Process.Start("...") ?

"Joshua Coady" <jo**@coady.us> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
I'm not sure if I was clear enough. Let me rephrase: Is there an easy way to call a PHP method or script from within C#?
Josh

In article <MP***********************@msnews.microsoft.com> , jo**@coady.us says... Hello,

I am working on a project that needs to use an opensource code library
written in PHP and uses MySQL. I dont want to have to rewrite the entire
thing in C#. Are there any options available?

Things I have thought of but either havent found examples of or am not
sure will work:

- Have a server running the PHP code that has a webservice. Then I would
just consume that service to use it in ASP.Net

- Find some library that can run PHP and give my C# code access to it

Thoughts, anyone?

Thanks,

Josh



Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kartik | last post by:
Hi, I have an ASP.NET application using VB.NET.I am sending a DOS command to a machine on the network to print a file. This is achieved using xp_cmdshell Dim str As String = "xp_cmdshell...
38
by: Remco Groot Beumer | last post by:
Hello, I'm trying to decide if the following situation would be workable: Generate an MS Access Front End (which will run localy on client computers), which will link to a DBMS (SQL server or...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
3
by: mairhtin o'feannag | last post by:
Hello, Since DB2 Cluster Certification Guide is out of print and I cannot seem to get my hands on a copy, is there a publication that would give me a "cookbook" approach to setting up a cluster...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
2
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
2
by: collie | last post by:
Hi, I have 2 listboxes. The first gets populated from the db as soon as the page loads. The second listbox get populated based on the user's selection from the first listbox. However,...
5
by: Henaro | last post by:
Hello~ I am having trouble setting environment variables in C++ on win32. The code that is not working is: char prxy; char pf_cmd1 = "set http_proxy="; ....
0
by: wisaunders | last post by:
the file I'm importing has > 200,000 records I have one problem: One of the columns in the .txt file (customerID) has almost all Inetger values except for about 30 records. Those 30 records...
0
by: drshah101 | last post by:
Hi there i have written the following code in C# and was wondering how i can output the script between the <Head></Head> tags i cant use literal as using master page StringBuilder...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.