10 More Discussions You Might Find Interesting
1. Web Development
Hello,
I am newbie on php-mysql and just know only installation.
I have an apache2+php5+mysql installed VPS.
What I would like to do is that when visitor enters requested data shown in index.html, submit button will run a script to save each field into a file.
Here is an example shown in... (1 Reply)
Discussion started by: baris35
1 Replies
2. Shell Programming and Scripting
Hello,
I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code
<input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/>
<input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies
3. Shell Programming and Scripting
I am trying to perform a button click via cURL and I am having an issue possibly due to java script on click. The HTML source code is:
<input id="ctl00_SPWebPartManager1_g_1bb6dc86_55ab_4ea9_a4db_4747922a8202_ctl00_RequestOption_0" class="radio" type="radio" checked="checked" value="1"... (5 Replies)
Discussion started by: js0505
5 Replies
4. Shell Programming and Scripting
Hi ...
I am writing a PERL CGI script where firstly i display a Submit button and when i click that, it will display a group of checkbox values and another submit button.
My question is Now, if i click the second submit button, it should get the checkbox values and work with those(do some... (0 Replies)
Discussion started by: gkrish
0 Replies
5. Web Development
I the problem that i facing is cannot use button click to execute the sh file that store in the same location. the program file is a php file and running in apache2. the code that i run is show below
<button onclick="sh()" name="sh">SH</button>
<script type='text/javascript'>
function sh()... (5 Replies)
Discussion started by: zhengkoon8
5 Replies
6. Web Development
hello 2 all
I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not
doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"-->
filename is a name of the file which script is using
the script is used for a score show (the number... (3 Replies)
Discussion started by: tip78
3 Replies
7. Shell Programming and Scripting
hello 2 all
I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not
doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"-->
filename is a name of the file which script is using
the script is used for a score show (the number... (0 Replies)
Discussion started by: tip78
0 Replies
8. Shell Programming and Scripting
Hi,
I am trying to write a python program which changes background color on click of button. However i am stuck up. Instead of changing the color currently it is creating a new frame every time.
please look at the code and let me know how to correct it
#!/usr/bin/env python
from Tkinter... (0 Replies)
Discussion started by: vickylife
0 Replies
9. UNIX for Dummies Questions & Answers
Hi Everyone,
I am facing a problem, regarding cgi cannot receive the value from HTML after click submit. Here is the code
===============================================
#!/bin/bash
genHTML()
{
cat <<-__EOF__
Content-type: text/html
<html>
<script language="JavaScript">
<!--
... (2 Replies)
Discussion started by: ryanW
2 Replies
10. Solaris
Guys
There's a new WebPage where you can generate a comprehensive detailed system documentation by button click. Look at the example at https://sdoctool.sun.com/data/doc.php?ID=sdoctool&N=2 ;)
Interested, go to
Cheers (0 Replies)
Discussion started by: lebch
0 Replies
Plack::App::CGIBin(3pm) User Contributed Perl Documentation Plack::App::CGIBin(3pm)
NAME
Plack::App::CGIBin - cgi-bin replacement for Plack servers
SYNOPSIS
use Plack::App::CGIBin;
use Plack::Builder;
my $app = Plack::App::CGIBin->new(root => "/path/to/cgi-bin")->to_app;
builder {
mount "/cgi-bin" => $app;
};
# Or from the command line
plackup -MPlack::App::CGIBin -e 'Plack::App::CGIBin->new(root => "/path/to/cgi-bin")->to_app'
DESCRIPTION
Plack::App::CGIBin allows you to load CGI scripts from a directory and convert them into a PSGI application.
This would give you the extreme easiness when you have bunch of old CGI scripts that is loaded using cgi-bin of Apache web server.
HOW IT WORKS
This application checks if a given file path is a perl script and if so, uses CGI::Compile to compile a CGI script into a sub (like
ModPerl::Registry) and then run it as a persistent application using CGI::Emulate::PSGI.
If the given file is not a perl script, it executes the script just like a normal CGI script with fork & exec. This is like a normal web
server mode and no performance benefit is achieved.
The default mechanism to determine if a given file is a Perl script is as follows:
o Check if the filename ends with ".pl". If yes, it is a Perl script.
o Open the file and see if the shebang (first line of the file) contains the word "perl" (like "#!/usr/bin/perl"). If yes, it is a Perl
script.
You can customize this behavior by passing "exec_cb" callback, which takes a file path to its first argument.
For example, if your perl-based CGI script uses lots of global variables and such and are not ready to run on a persistent environment, you
can do:
my $app = Plack::App::CGIBin->new(
root => "/path/to/cgi-bin",
exec_cb => sub { 1 },
)->to_app;
to always force the execute option for any files.
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO
Plack::App::File CGI::Emulate::PSGI CGI::Compile Plack::App::WrapCGI
See also Plack::App::WrapCGI if you compile one CGI script into a PSGI application without serving CGI scripts from a directory, to remove
overhead of filesystem lookups, etc.
perl v5.14.2 2011-11-02 Plack::App::CGIBin(3pm)