Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i want to integrate backend (C code) with GUI (its based on java and php), im working on linux cent os, any idea how do i need to start with im new to this field
thanks..
Last edited by nishitmukesh; 02-04-2011 at 08:30 AM.
i want to integrate backend (C code) with GUI (its based on java and php), im working on linux cent os, any idea how do i need to start with im new to this field
thanks..
New to what field? Linux or programming?
Can't really tell you how to make two unspecified, unknown programs work together, but if you've got a working program you can call from the command line, both PHP and Java have methods to call system programs.
Can't really tell you how to make two unspecified, unknown programs work together, but if you've got a working program you can call from the command line, both PHP and Java have methods to call system programs.
Ok. If you've got a working C program, then all you've got to do is call that program like you would any other, from your Java or PHP code. Making system calls is well documented for both languages.
we are making the system call something like this...
system(cli_main(url,policy),$returnoutput);
>>>"cli_main" is the c function in Cclass.c.
it takes 2 arguments as "url" and "policy".I am making this call from my php program.
>>> Is this the correct way to do it.
we are making the system call something like this...
system(cli_main(url,policy),$returnoutput);
>>>"cli_main" is the c function in Cclass.c.
it takes 2 arguments as "url" and "policy".I am making this call from my php program.
>>> Is this the correct way to do it.
No, why would it be? You don't call a routine from any other program directly...you call the program itself, and pass whatever arguments it needs on the command line. Again, if you have a working C program, compile it, and get it working first. If your program is "Cclass", and takes two arguments, then you'd call it with
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.