Click to See Complete Forum and Search --> : Web Server Mangment Applcation (Part C++/PHP or All C++ and Web Interface PHP...


ComputerNerd888
01-15-2004, 12:18 AM
Hello,

I understand that this is a PHP forum but I figure that there is a large number of Sys. Admins around...

I am attempting to make a Web Server Management Application (WSMA) though is should be more Server Management Application because it will do much more than just web servers.

Though here is the thing...

I am a much better C++ programmer than PHP but I need the application to be web interfaced. So should I program the core program in C++ and than use PHP as the web interface...

Like PHP calls a routine (via SSH via SSL) to the C++ application than the C++ application dose it and returns information back to the PHP part?

I think this would be more sucure...

What do you think?

If there are any C++ programmers around could you show how I could call the C++ (and only call the function of the C++ program) via PHP and than have it wait for response? (Though it would be nice to have the page render than the response to render when it comes back dynamically (I think JavaScript could be used for this...)

Thanks,
Andrew

Shrike
01-16-2004, 04:51 AM
On Windows COM functions might be the best bet, on *nix exec() can run command line programs, and also accept data back. I don't know any more than that though :)

ComputerNerd888
01-17-2004, 08:32 PM
Hello,

Yes that is what my plan of attack shows as...

But what do you think? Write it ALL in PHP or wirte the core in C++ and wirte the Web Interface in C++?

Thanks,
Andrew

weekender
01-17-2004, 09:57 PM
You may find chapter 7 of NewRiders' (http://www.newriders.com/) PHP Programming for Windows, which is entitled PHP, COM & .NET - i was skimming it in a library recently and it explains how to write a COM app that php can connect to to get relevant information

http://www.newriders.com/books/product.asp?product_id={7AFC5DC5-3DFD-4F7D-AE0E-80F27E8EC8E9}

adam

ComputerNerd888
01-17-2004, 10:30 PM
It needs support for Linux not windows at first and I know how to do this part...

My question is what do you think?

Make WSMA's CORE in C++ and the WebUI in PHP.
Or
Make WSMA'a CORE AND WebUI ALL in PHP.

Andrew

weekender
01-17-2004, 10:33 PM
it's not a question anyone can answer - do you have a definative list of what you need this app to do? If so, go through and see if it can all be done in PHP - if not, you'll have to mix anyway. Also, how prepared are you to learn php? Do you want to maximise php to teach yourself, or learn as little as possible?

ComputerNerd888
01-17-2004, 10:47 PM
I know PHP I just fell better programming C++...

All can be done in either C++ or PHP...

Just as other programmers I wanted what you think would be able to do this job better...

What is more would be faster, secure, ect ect...

Andrew