Need help with C# and php...

AluminumHaste

New member
I want to create an app that uses php scripts over the net, to intiate an ISP (Internet Service Provider) speed test, and the results are returned via the http url.
I think this means that the php script is using a POST method?? :confused:

What I want to do is save that information after running the test about 5 times a minute and average the test results, and keep doing this all day to see my results over the a 24 hour period for my ISP.

I can get information off a website using the C# classes, but this isn't so easy to do with PHP inside from an app.

So what I'm looking for is some help in using php from within C# or C++ or VB.net.
 
PHP and .NET are 2 different run-time environments. I haven't used PHP in a while. But, last I knew the only way to use PHP with .NET is by exposing your C# classes as COM classes and calling them from your PHP code. But, to me, the easiest way is to use ASP.NET instead of PHP. That way everything is completely integrated together and there is no need to do any interop.
 
Okay, I hate ASP but I'll give that a shot.


ASP.NET is totally different than the old ASP. You really should check it out. The model is moving more towards a drag-and-drop web interface. Heck, you can even program server pages without understanding a single thing about HTML. It's very different and powerful so, if you are used to the old ways, it may not seem straight forward at first. Plus, you can now use 100% C# for all your ASP development. Try an intro book and look at lots of samples. Once you understand fully what they have accomplished with .NET you will be impressed.
 
Oh I took ASP.NET in school using Visual Studio 2003 using VB.Net

I didn't do so well because I missed about 5 days worth and fell behind and never caught back up, so yeah, I have a professional Apps book of ASP.NET applications that I could read, it was a review sample for my teacher who had like 5 of them who gave me one, it wasn't in production yet, so I could read that.

I'll give it a shot. Thanks
 
Last edited:
Bah, I'm a manager of a MS .NET based software department and our group never uses the drag-and-drop GUI designer. That stuff's ok for simple tasks but fails to deliver for complex tasks. We do have a group in our company that works on an internal app that uses a lot of those widgets though.

We use C#, VB.NET, Javascript and have some legacy C++ and VB objects as well.
 
I agree. It is not there yet. But, the concept is solid. We just need more and better server controls. Although some of the sample apps they created using the standard controls do look pretty nice. There is something to be said about attaching typed datasets to controls and having ASP build the entire page for you. I haven't tried ASP.NET yet using VS 2005 yet. I can only assume it has improved even more. The .NET 2.0 language features and libraries are really useful. I can imagine the ASP.NET must have taken an equal jump in improvement. (Need more time to try em out!)

TableAdapter FTW!
 
Well I'll try it out soon, I have VS 2005 on here, and ASP installed so I am good to go.
I will be using the GUI drag and drop interface as I'm not going to be doing anything that complex, except maybe multi-threading the app using C#.
Can I do that with ASP??
 
Well I'll try it out soon, I have VS 2005 on here, and ASP installed so I am good to go.
I will be using the GUI drag and drop interface as I'm not going to be doing anything that complex, except maybe multi-threading the app using C#.
Can I do that with ASP??


You can, but may not need to. IIS handles a lot of load balancing for you and will spawn it's own threads when necessary. Just remember to separate your business logic from your UI!
 
You can, but may not need to. IIS handles a lot of load balancing for you and will spawn it's own threads when necessary. Just remember to separate your business logic from your UI!

Yeah I may have fallen asleep in ASP but I learned some good things in JSP (Java Server Pages), but I always seperate things like that. It's probably because I started learning with OOP and never did it any other way.
 
Back
Top