Re: [PHP] Running Apache in one machine and php in another
On 06/02/2004 at 11:55 Mrs. Geeta Thanu wrote: This is in addition to my previous mail. I feel the PHP script and the C program should be in one machine and apache in another. When a user click the link the php script should upload a form get the input and show the result. So apache should support running PHP in another machine.Is it possible. It's possible. The easiest way to do this is: # On the webserver, you just need Apache, with a redirection setup. So if a user entered http://webserver/genome-processing/ then it'll be redirected to http://application-server/genome-processing/ Example (put these in httpd.conf): IfModule mod_proxy.c ProxyPass /genome-processing/ http://application-server/genome-processing/ ProxyPassReverse /genome-processing/ http://application-server/genome-processing/ /IfModule # On the application server, you'll need Apache+PHP and that C program. genome-processing/index.php in this box should process all user input, and then execute the C program with system() function: http://uk.php.net/manual/en/function.system.php # Ensure that the output from the C program can be easily parsed in PHP, or better yet, already HTML-tagged properly so you don't need to process it any further in your PHP script - just printf() the whole of its output straightaway. There are other ways to do this, but as I said I think this is the easiest way. CMIIW of course. regards, -HS On Fri, 6 Feb 2004, Jason Wong wrote: On Saturday 07 February 2004 02:57, Mrs. Geeta Thanu wrote: I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . -- Kampanye open-source Indonesia - http://www.DariWindowsKeLinux.com Solusi canggih, bebas ikatan, dan bebas biaya v0sw6Chw5ln3ck4u6Lw5-2Tl6+8Ds5MRr5e7t2Tb8TOp2/3en5+7g5HC - hackerkey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
On 06/02/2004 at 11:55 Mrs. Geeta Thanu wrote: This is in addition to my previous mail. I feel the PHP script and the C program should be in one machine and apache in another. When a user click the link the php script should upload a form get the input and show the result. So apache should support running PHP in another machine.Is it possible. It's possible. The easiest way to do this is: # On the webserver, you just need Apache, with a redirection setup. So if a user entered http://webserver/genome-processing/ then it'll be redirected to http://application-server/genome-processing/ Example (put these in httpd.conf): IfModule mod_proxy.c ProxyPass /genome-processing/ http://application-server/genome-processing/ ProxyPassReverse /genome-processing/ http://application-server/genome-processing/ /IfModule # On the application server, you'll need Apache+PHP and that C program. genome-processing/index.php in this box should process all user input, and then execute the C program with system() function: http://uk.php.net/manual/en/function.system.php # Ensure that the output from the C program can be easily parsed in PHP, or better yet, already HTML-tagged properly so you don't need to process it any further in your PHP script - just printf() the whole of its output straightaway. There are other ways to do this, but as I said I think this is the easiest way. CMIIW of course. regards, -HS On Fri, 6 Feb 2004, Jason Wong wrote: On Saturday 07 February 2004 02:57, Mrs. Geeta Thanu wrote: I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . -- Kampanye open-source Indonesia - http://www.DariWindowsKeLinux.com Solusi canggih, bebas ikatan, dan bebas biaya v0sw6Chw5ln3ck4u6Lw5-2Tl6+8Ds5MRr5e7t2Tb8TOp2/3en5+7g5HC - hackerkey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
On Saturday 07 February 2004 04:34, Mrs. Geeta Thanu wrote: Putting Apache and PHP in one machine and high end computation in another machine will be good solution for my problem. Can I know any good URL which says about php's stream,curl,socket functions. Download the php manual and read a chapter each night before you go to bed :-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Any line, wire, or cloth cut to length will be too short -- Dimensions General Shefields Corollaries n1 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
Am I confusing. yes -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
On Fri, 2004-02-06 at 13:57, Mrs. Geeta Thanu wrote: Hi all, I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . Sure. xml/rpc would be one possibility. -- BrianGnuPG - KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.mit.edu == gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC GnuPG: http://gnupg.org http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC Linux Registered User #339825 at http://counter.li.org signature.asc Description: This is a digitally signed message part
Re: [PHP] Running Apache in one machine and php in another
Make it a web service and use SOAP or XML-RPC http://phpsoaptoolkit.sourceforge.net/phpsoap/ --- Mrs. Geeta Thanu [EMAIL PROTECTED] wrote: Hi Jason, Thank you for your reply. This is an requirement in bioinformatics lab where they want to submit a huge genome sequence as a input to a program ( say in c) and get the result and display. Now i want this c program in another high end machine because it needs lot of computations, which is not possible in sun machine where i installed apache+PHP. Now I want the PHP script, like CGI has to get the genome from the browser of a user and send to the machine where C program is running and again get the results and show as output. Please reply whether this is possible. Thank u Geetha On Fri, 6 Feb 2004, Jason Wong wrote: On Saturday 07 February 2004 02:57, Mrs. Geeta Thanu wrote: I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . Depends on what you really want to do. What problem are you trying to solve? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Running Apache in one machine and php in another
Hi all, I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . If so can anybody help me, what configurations i should do in httpd.conf etc. Please give your suggestions. thanks in advance Geetha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
On Saturday 07 February 2004 02:57, Mrs. Geeta Thanu wrote: I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . Depends on what you really want to do. What problem are you trying to solve? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
Hi Jason, Thank you for your reply. This is an requirement in bioinformatics lab where they want to submit a huge genome sequence as a input to a program ( say in c) and get the result and display. Now i want this c program in another high end machine because it needs lot of computations, which is not possible in sun machine where i installed apache+PHP. Now I want the PHP script, like CGI has to get the genome from the browser of a user and send to the machine where C program is running and again get the results and show as output. Please reply whether this is possible. Thank u Geetha On Fri, 6 Feb 2004, Jason Wong wrote: On Saturday 07 February 2004 02:57, Mrs. Geeta Thanu wrote: I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . Depends on what you really want to do. What problem are you trying to solve? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
Hi , This is in addition to my previous mail. I feel the PHP script and the C program should be in one machine and apache in another. When a user click the link the php script should upload a form get the input and show the result. So apache should support running PHP in another machine.Is it possible. Am I confusing. Waiting for your replies. Thanks Geetha On Fri, 6 Feb 2004, Jason Wong wrote: On Saturday 07 February 2004 02:57, Mrs. Geeta Thanu wrote: I have configured Apache webserver executing PHP scripts on sun machine and everything is working fine. Now I want the web server to pass on the PHP executions to another machine and once done should get the result and display it. Is it possible . Depends on what you really want to do. What problem are you trying to solve? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
On Fri, 2004-02-06 at 14:55, Mrs. Geeta Thanu wrote: I feel the PHP script and the C program should be in one machine and apache in another. When a user click the link the php script should upload a form get the input and show the result. So apache should support running PHP in another machine.Is it possible. The answer you are looking for is no. The solution you are looking for is to have an interface from the application on the powerful system doing these calculations to the web server running php. This could be as complicated as an extension to the application doing all this processing, or as simple as an nfs share with some flat files on it. If you are going to put php on the system doing all this processing, why not put apache as well? If it's a security issue you could use squid as a proxy or even have a php script on a public web server access the php running on apache off the secondary server as your integration. You could use ssh to access a cli php script on the secondary server through a php/cgi/etc. gateway on your public web server as well. Good luck, Adam -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
On Saturday 07 February 2004 03:35, Mrs. Geeta Thanu wrote: This is an requirement in bioinformatics lab where they want to submit a huge genome sequence as a input to a program ( say in c) and get the result and display. Now i want this c program in another high end machine because it needs lot of computations, which is not possible in sun machine where i installed apache+PHP. Now I want the PHP script, like CGI has to get the genome from the browser of a user and send to the machine where C program is running and again get the results and show as output. Please reply whether this is possible. What you have described is not really what is in your subject. Basically you want a front-end machine that will accept some input which is then passed onto another [back-end] machine for processing. This is fairly easy to accomplish using Apache-PHP on the front-end machine. PHP's streams support, curl functions and socket functions will allow you to communicate with the back-end machine. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Zymurgy's Law of Volunteer Labor: People are always available for work in the past tense. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running Apache in one machine and php in another
Thank you Jason and Adam for your quick and valuable replies. Putting Apache and PHP in one machine and high end computation in another machine will be good solution for my problem. Can I know any good URL which says about php's stream,curl,socket functions. Thanks once again Geetha On Fri, 6 Feb 2004, Jason Wong wrote: On Saturday 07 February 2004 03:35, Mrs. Geeta Thanu wrote: This is an requirement in bioinformatics lab where they want to submit a huge genome sequence as a input to a program ( say in c) and get the result and display. Now i want this c program in another high end machine because it needs lot of computations, which is not possible in sun machine where i installed apache+PHP. Now I want the PHP script, like CGI has to get the genome from the browser of a user and send to the machine where C program is running and again get the results and show as output. Please reply whether this is possible. What you have described is not really what is in your subject. Basically you want a front-end machine that will accept some input which is then passed onto another [back-end] machine for processing. This is fairly easy to accomplish using Apache-PHP on the front-end machine. PHP's streams support, curl functions and socket functions will allow you to communicate with the back-end machine. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Zymurgy's Law of Volunteer Labor: People are always available for work in the past tense. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php