Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php form and ssi
Re: php form and ssi
Incorrect. Remember - you couldn't post to an .shtml page? Guess why not?
See above. You can't post to .shtml pages.
Hey - progress!
Because you're asking the impossible. In order to incorporate your
changes, they need to change their code.
By definition, open source is not proprietary. So the rest of your
argument is immaterial.
If you're expecting to make money off of this project, forget it.
You're wasting your time right now.
Among other things, you can't post to .shtml files - as you found out.
That is also correct on Apache. All you're doing is causing significant
additional overhead with your use on virtual.
One last comment. I gave you a good solution - one which works on every
platform. You just don't like it.
Good luck on your "project". You'll end up with the two users you have,
and they will go away as soon as someone comes along with a good solution.
Remove the "x" from my email address
JDS Computer Training Corp.
- Henrik Carlqvist
December 1, 2008, 10:55 pm
Re: php form and ssi
At first I was unable to post through .shtml and therefore I asked my
question here. I was then given the solution with virtual().
The tests I have done did show that it was possible to post through
the .shtml page when I used virtual() on apache. All data submitted in the
php form went as expected to the php file given as action. That php file
then called an .shtml file with virtual(). The .shtml file made an
<!--#include of a php file again and this last php file was able to see
all the variables from the form.
I was hoping to find a solution that would work on as many platforms as
possible. So far we have not found any way to accomplish the .shtml form
data passing on IIS, but at least we have a solution that works with
This will give IIS users with .shtml pages a choice between five
1) Reencode some pages to php (which seems to be your preferred solution)
2) Switch to apache
3) Don't upgrade phpoi
4) Upgrade phpoi, but don't use the new features requiring form data
5) Accept that pages look spartan when forms are posted
Apache users on the other hand which are more than 50% of the market share
will not have to make a choice. Their .shtml files will continue to work
also with forms in the include php files.
No I do not. This project is something I do on a hobby basis as I have use
for it myself. I did choose to release it as opensource not only because
others could benefit from it but also hoping that others might contribute
support for more GPS devices.
I did a quick test:
1) Load a .php page in a browser 10 times
2) Load a .shtml page which includes two php forms in a browser 10 times
3) Submit a form with virtual through the .shtml page to the php files 10
After each test I did check with ps how much CPU my apache daemons had
consumed since they were started. I wasn't able to see any measurable
increase, but then ps only gave me second precision.
I don't like your suggestion that I should force apache users to rewrite
their sites when it is possible to have a better solution. Our failure to
find such a good solution for IIS is a failure, but implementing the best
solution that we have found will at least give the IIS users yet another
Another common misconception about opensource projects is that they strive
for as many customers as possible and fear competition. For a commercial
project this is true because more customers means more money and money is
the reason for commercial work.
As a developer of an opensource project more customers would not mean more
money for me. The goal of an opensource project is to make the product as
useful as possible. Once a product is useful enogh it will find a big user
base, but for an opensource project the big userbase is not a goal, it is
only a side effect.
If a competitor would write a better program that would be fine with me.
When publishing a project as opensource you even permit others to take
your source and fork off their own projects.
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
- » Naming a php variable using the result of a database query
- — Previous thread in » PHP Scripting Forum