473,383 Members | 1,748 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,383 software developers and data experts.

are C# and PHP workable together?

153 100+
Hi

I have been left with no chice but to learn a bit about c# as thisis the only language acertainapi is written in.

With the api comes a project which i have opened,compiled and used succesfully. It is mainly just a Form .cs file with the functions within that class.

I feel confident enough to fiddle about with (c#) form code to change the way it gets it's variable (currently from text boxes).

I put together a php page the other day which receives it's variable from the url of the page and then queries databases locally.

My challenge is to link my variables from url in php page to query the database that the form is querying.

Possible?

I'm stuck on the C# side obviously because i've never used it. How is C# used within a website?

Please help!
Jul 29 '09 #1
3 2282
dlite922
1,584 Expert 1GB
I don't know C#, you might look at tutorials on how to use it on website. I don't believe there's any library in PHP that will let you execute C# code (then again I haven't searched, I'm pulling that out of my ... head)

URL variables seems to be standard so if you want to pass variable through URL to a C# page (or vice versa), you can! POST might even work too. They're HTTP protocol, not PHP.

Did I dance around the answer or did that answer your question?


Dan
Jul 29 '09 #2
brendanmcdonagh
153 100+
Thanks for Dan,

I have been learning C# all day, what a nightmare!

Oh well, got it working the way you suggested,no need to use php when c# does the same.

Just trying to view it now, apache won't show it, 123-reg doesn't show it, any ideas anybody?

Regards

Brendan
Jul 29 '09 #3
Dheeraj Joshi
1,123 Expert 1GB
I don't know whether you can directly use the C# code inside php?

But there is something called as SWIG(Simplified Wrapper and Interface generator).

It allows you to wrap all global data structure(Class or structure etc) and procedures(function or methods) in to a intermediate php file. And you can directly access all those C# functions just like normal php function.

There may be other alternatives.

This link will be useful.Link

All the best.
Jul 30 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: John Murtari | last post by:
Folks, We have been running PHP 4.x on Apache 1.3.x with no problems. After the first upgrade from php3 -> php4 were were able to load both modules for php 3 and php 4 with no problem. With an...
10
by: Sunny K | last post by:
Hi guys, I have a field in my DB called EventDate as a DateTime field, therefore it holds both the date and time together like this: '2004-10-14 08:42:57.000'. I need to add together all the...
2
by: John M | last post by:
Hi For reporting grades and comments about students, I use one subreport per subject. This includes a number of text boxes, some containing numerical data, but one containing a textual report. ...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
1
by: Rowan | last post by:
Hi there, I recently posted an architecural question that I got quite a bit of help from and am now stuck again. I have two projects though I look at them as one with two presentation...
4
by: Rocky86 | last post by:
hi people I trying to join the 2 report1 and report2 together to send it to the actionscript for displaying the result how do I join them together plss help below is my code: <?php $temp=""; ...
2
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi, I have several dropdownList controls on my form and I wish to loop through them all and find the selected value and then concatenate them together into a string. The problem is I can't find a...
2
by: Lionel B | last post by:
I frequently seem to run into the following annoyance regarding template class specialisation: I have a template class which implements, for a general template parameter, some basic functionality...
4
by: knix | last post by:
I have this access project consisting of multiple tables that are linked together in a relationship. I would like to migrate the consolidated information through appending in a datasheet form or...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.