Jump to content

launching PHP from HTML form


kowal2205

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/57952-launching-php-from-html-form/
Share on other sites

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

"

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.