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
Share on other sites

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.

Link to comment
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

"

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.