kowal2205 Posted July 1, 2007 Share Posted July 1, 2007 hi, i build an app using PHP/MySQL/web. the APP and PHP programm are both located on the CD. step 1: i want it to a first interface (installation phase) to be an HTML page. step 2: I want it to get some informations for the installation step 3: i want the form to launch a PHP page (on the CD) and using the PHP.exe (on the CD) step 4: the PHP page send my modules using FTP step 5: once the FTP transfert is finished, the PHP page open a new page (that has been just uploaded) on the web server. my problem is in step 3, how is it possible to launch a PHP script from an HTML page which is not on a web server?? I can do it easily with a SHELL script but i prefer the graphic interface of an HTML form. I know it is either possible using GTK but i don't want to use it because i'm not surre the client has a JVM. thanks. Quote Link to comment Share on other sites More sharing options...
trq Posted July 1, 2007 Share Posted July 1, 2007 Any reason why the form (assumed to be used in step 2) cannot point to a remote php script for step 3? ie; On your server. Quote Link to comment Share on other sites More sharing options...
kowal2205 Posted July 1, 2007 Author Share Posted July 1, 2007 Yes, the form is on the CD (or a NETWORK DIRECTORY), not on the server. the form gather web server adress, ftp login, mysql login, mysql server IP .... it is the first step before transfering data on the server. Quote Link to comment Share on other sites More sharing options...
trq Posted July 1, 2007 Share Posted July 1, 2007 The form need not be on the server, but the processing script does. Quote Link to comment Share on other sites More sharing options...
kowal2205 Posted July 1, 2007 Author Share Posted July 1, 2007 it does not. currently, i launch the php script using the PHP executable on the CD. using a shell script, it is easy but it does not give me the interface i wish. and it need a Windows AND a UNIX script. Quote Link to comment Share on other sites More sharing options...
trq Posted July 1, 2007 Share Posted July 1, 2007 Listen. The form can be on the cd, on the filsystem, wheerever you like. The PHP script which processes this form however should be on your server. Simple. There is really no reason to have the processing script on the cd. Quote Link to comment Share on other sites More sharing options...
kowal2205 Posted July 1, 2007 Author Share Posted July 1, 2007 I understand your solution. but it is available only if you already have uploaded all the installation scripts on the server. an i only know the server once the client fulfilled the HTML form. there is no way for the script to be on the server directory before. what i need is more something like launching the following script after clicking on the submit button: " set PHP_BIN=.\php\php.exe %PHP_BIN% -f modules\admin\install.php " Quote Link to comment Share on other sites More sharing options...
trq Posted July 1, 2007 Share Posted July 1, 2007 OK... now where getting somewhere. Unfortunately however, your not going to be able to have a html form post to a command line script. You'll need an instantiated web server running on the cd. The only way I can think of to do this would be to have the cd actually boot into a LAMP environment including a Linux distro and Apache. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.