Cgi-bin, form set-up
I want to create a registry on our website wherein a customer can setup his/her own registry page, type in what products he/she wants, their quantities, etc.
I understand that to do this one has first to have a "cgi-bin" file on their site to which all such forms point.
I currently cannot find any cgi-bin folder on our site. So, am I correct in stating I need one, and if so, how do I go about creating same?
Bill
First you mention cgi processing of scripts and then databases? There is no necessary connection between the two.
cgi form processing has largely been replaced by PHP or other server side languages. Again, there is no connection between PHP/ASP and server-side includes. You can have one without the other.
You will have to find out from your host what they offer. You will also need to determine what it is that you want to do. Two separate yet equally important questions.
Similar Messages
-
Where is /cgi-bin/ and who puts files in it?
One of my clients is trying to make a form work with /cgi-bin/mailto but I can't figure out:
1) Where is the global /cgi-bin/ supposed to be?
2) Who is responsible for putting files in it?
Thanks!If you wan't to make the CGIs work server-wide, the default location is /Library/WebServer/CGI-Executables. The default web server setting already has a ScriptAlias directive pointing any address written as www.example.com/cgi-bin redirect to this directory. The global webmaster... the server administrator is responsible for all CGIs in this directory.
If you want to let each individual webmasters take care of their own CGIs, each website can override this by creating their own cgi directory within their own web directory. This directory can be named anything (e.g. "/scripts/"). Generic form-to-mail type CGIs are usually placed in the /Library/Web... directory for global usage, but if a script is only used by a single website, it's usually put inside their own web directory. You may want to tweak their httpd.conf file to assign this folder as the ScriptAlias target. When you do this, websites can execute the CGIs with the .cgi extension (i.e. pass the script on to whatever compiler/interpretor, like perl). Otherwise, you'll need to name each script like scriptname.pl or scriptname.c instead of scriptname.cgi.
Extended Keyboard Server Mac OS X (10.4.8) -
Video plays on Root folder but not in Cgi-bin folder...Help!
Hello-
I just transfered my entire website content form one domain to another and for some reson my videos will not play on the new domain whereas they played correctly in the cg-bin folder of the old domain. I do not understand why and need your help to figure it out since I am not a flash guy.
Here is the link to the videos that are not working correctly. http://www.healthywaterlife.com/cgi-bin/d.cgi/phil/videos.html
My cgi guy says that all of the cgi is working correctly and he has stated that the problem lies within the code of the html. So here is the html code for one of the videos...
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="605" height="350" id="FLVPlayer1">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" quality="high" scale="noscale" width="605" height="350" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />
</object>
And yes, my server, codero, supports all of the cgi as the old domain worked well and was operating on the codero server.
Thanks for your help!Are you sure that all the files have been uploaded?
The player.swf, the skin.swf, the actual .flv video file, and what about any javascript files used for Flash detection? So that could be as many as 4 files.
To test, paste the entire absolute address to each of those files directly into your browser address bar, like this:
http://www.healthywaterlife.com/videos/FLVPlayer_Progressive.swf
You should not see ANY file not found messages.
After verifying that each file exists on the server, then it's only a matter of correctly pathing all the Flash assets, and pathing includes correctly spelling file names (upper or lower case.. must be exact) as well using correct folder names.
To review Flash pathing:
Pathing issues
Almost always when it works on the local machine and not the server, it's a pathing problem.
You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location. So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
Best wishes,
Eye for Video
www.cidigitalmedia.com
If that doesn't fix it, post a link. That really give us the best chance to help you.
Best of luck!
Adninjastrator -
Pointing ItunesU.class to a cgi-bin directory.
Our school is setting up an ITuneU page and we have successfully compiled the ITunesU.class file but for some reason our web server does not have a cgi-bin directory to put these files into. Can we put the Java files into a different directory or is cgi-bin required?
Our Itunes university is up and running.
-
I installed a form mail product called Formail several months
ago. I am using Dreamweaver 8 at work. I am creating a new form and
cannot find my cgi-bin file to modify the program. Does anybody
have any experience with this program in Dreamweaver? I have
earched for hours. The old form I created still works great but I
cannot trace it back to the cgi-bin file. I think I have been
working to long!!!!!look inside your cgi-bin for a file named formmail.pl
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"Warren Sims" <[email protected]> wrote in
message
news:g7d4d0$jf7$[email protected]..
> I installed a form mail product called Formail several
months ago. I am
using
> Dreamweaver 8 at work. I am creating a new form and
cannot find my cgi-bin
file
> to modify the program. Does anybody have any experience
with this program
in
> Dreamweaver? I have earched for hours. The old form I
created still works
great
> but I cannot trace it back to the cgi-bin file. I think
I have been
working to
> long!!!!!
> -
What is the relationship between CGI-Executables and cgi-bin?
I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
Ti Powerbook G4 Mac OS X (10.4.4)Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
My apache error log says:
[Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
Here's the first directory directives in httpd.conf:
# First, we configure the "default" to be a very restrictive set of
# permissions.
<Directory />
Options FollowSymLinks
AllowOverride Options
</Directory>
Farther down, there's this, which I added ExecCGI and index.cgi:
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
<Directory /Users/*/Sites>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
DirectoryIndex index.html index.cgi
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
Include /private/etc/httpd/users/*.conf
<Directory "/Users/joe/Sites/">
Options Indexes MultiViews Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
<Directory "/Users/joe/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
Ti Powerbook G4 Mac OS X (10.4.4) -
Executing cgi-bin from a java program
I am trying to develop a Java HTTP server that also includes support for CGI-BIN but the last weeks i am stack at the same point ! I am trying to execute the cgi and then give it an argument but i never have an output ! Please help cause the deadline is coming near !!!
//Set environment variables
String[] setVar = {"REQUEST_METHOD=POST","CONTENT_LENGTH="+extra.length};
String[] cgi = {"/bin/bash","./home/pap/jhttp"+Petition_Analysis.pt.uri.path,"/n"};
//Execute the cgi-bin with the appropriate input
Process cgiOut = Runtime.getRuntime().exec(cgi,setVar);
// get its output (your input) stream
DataOutputStream put = new DataOutputStream(cgiOut.getOutputStream());
put.writeBytes(Petition_Analysis.pt.Pet_Body);
DataInputStream in = new DataInputStream(cgiOut.getInputStream());
// Read and print the output
String line;
StringBuffer page = new StringBuffer();
while ((line = in.readLine()) != null) {
page.append(line);
//Send page to client
out.print("HTTP/1.1 200 OK\r\n");
out.print("Content-Length: " + page.toString().length() +"\r\n\r\n");
System.out.print(page);
Cgi call is like that:
./post_from.cgi
first_operand=342&second_operand=32&operation=-
Note that there is a blank line !Well no, the script works perfectly, here is the output of the console in Linux system and this exactly what i want to do in the program:
[pap@laptop pap]$ export CONTENT_LENGTH=11
[pap@laptop pap]$ export REQUEST_METHOD=POST
[pap@laptop pap]$ /home/pap/jhttp/cgi-bin/post_form.cgi
op1=1&op2=2
Content-Type: text/html
<html><head><title>Script results</title></head>
<body>
<p>Number of sent fields: 2</p>
<p>
<b>Field:</b> op1<br>
<b>Valor:</b> 1
</p>
<p>
<b>Field:</b> op2<br>
<b>Valor:</b> 2
</p>
</body></html>
So the question is how to this inside a Java program and better forget my code which is erroneous
also forgive my english :) -
Hi,
I've made up some forms for a website but when I link to the
perl script in
the cgi-bin folder it comes up with "You are not authorised
to view this
page".
Am I linking it wrong or doing something else wrong? I've
found this
problem on a few sites I've worked on and I've fixed it by
linking to a
script on our own site but I'd rather figure this out than
work around it.
ThanksAsk your host to give you read permissions on that folder.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"JimR99" <[email protected]> wrote in message
news:e2nrs2$e5s$[email protected]..
> Hi,
>
> I've made up some forms for a website but when I link to
the perl script
> in the cgi-bin folder it comes up with "You are not
authorised to view
> this page".
>
> Am I linking it wrong or doing something else wrong?
I've found this
> problem on a few sites I've worked on and I've fixed it
by linking to a
> script on our own site but I'd rather figure this out
than work around it.
>
> Thanks
>
>
> -
Hello all you experts out there!
I inherited a Dreamweaver website which allows the public to
ask for information to be sent out to them. Whilst it is very easy
to edit the html file and add a couple of new options to it, I
cannot find out how to get these new options to impact on the
cgi-bin file and filter through to the email that is set up.
Can anyone offer me some simple - very simple - help?
ThanksWhat script is being used? Is it custom or something like
formmail.pl?
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"MD-SKYE" <[email protected]> wrote in
message
news:fvsjcp$ho3$[email protected]..
> Hello all you experts out there!
>
> I inherited a Dreamweaver website which allows the
public to ask for
> information to be sent out to them. Whilst it is very
easy to edit the
> html
> file and add a couple of new options to it, I cannot
find out how to get
> these
> new options to impact on the cgi-bin file and filter
through to the email
> that
> is set up.
>
> Can anyone offer me some simple - very simple - help?
>
> Thanks
> -
Lycos.tripod Cgi/Perl Form
I tried using a CGI/Perl form tutorial type thing from
lycos.tripod support but I couldnt get it fully functional. The
site i have uploaded is
HERE and the page I
need the CGI/Perl to work on is
Join Us. I
made it functional enough where is if you click SUBMIT it tells me
that its going to run the CGI-BIN Script but it then just refreshes
the page after I created the "Thank You" page and the "error" page.
I was wondering if anyone could get me a step by step process
on how to do this correctly because other than that my site is
almost fully functional and free :).
Thank you in advance (btw I am not that good with technical
terms so if you can make it basic)> The site i have uploaded is
>
http://www.cielodefisa.tripod.com
and the page I need the CGI/Perl to work on
> is
http://www.cielodefisa.tripod.com/JoinUs.html.
Those links are 404 not found.
On a guess-
http://cielodefisa.tripod.com/JoinUs.html
does work.
http://www.thesitewizard.com/faqs/feedbackform.shtml#missingfile
check for the chfeedback file not being uploaded to correct
directory, and
that there isn't a "thankyou" page specified in the form,
afaik.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Can servlets go in the CGI-BIN???
my server has a CGI-BIN.... does it surport servlets??Servlets were conceived to replace cgi-bin programming.
Servlets can be put anywhere, even in the cgi-bin folder, but servlets need a servlet engine to run, such as Tomcat(jakarta.apache.org/tomcat) or Jrun (from www.macromedia.com), among others. -
F-27 customer statement For progremme the default form set is missing
Hi all,
Can anybody solve me the error while running customer statement F-27 iam getting the error is for "program default form set is missing".I have checked all the configuration settings in correspondence,But i am able to identify the error.We are using SAP standard program (RFKORD10) and form also (Z140-ACC_STAT_01).For company code we have assigned program and form also.
If anybody can solve the issue really i appreciate them.
Thanks & Regards,
Vasu.Hi,
Here are answers of your questions:-
Questions:
1. How to convert PDF file per customer .
A. Get spool id per customer and use FM CONVERT_OTF_2_PDF or CONVERT_OTFSPOOLJOB_2_PDF or 'CONVERT_ABAPSPOOLJOB_2_PDF' SAPSCRIPT to PDF for conversion.
2. How to split the spool request for per customer .
A. This you have to design in your driver program and club your spools for particular customer.
3. Script converted PDF file how to place in application server.
A. You have to use destination for PDF as file name and then use Open dataset for output to keep it on application server.
Regards,
Gaurav -
Hi All,
I've got error message when make copy form setting to user.
" You can not continue copying from setting, user add-ons currently connected to SAP Business One Exist. Make sure that selected users and add-ons are logged off and try again"
Why this is happen? There is no one login but me and no add-on connected.
I've try to relogin several times, the result is the same.
can any one tell me why this error accure?
Thanks before
FajarHi Fajar,
Restart your PC/server and try again. Before restarting check in Add-on administration that No addon should be in automatic .
Regards,
Bala -
How to disable Withholding Tax in Form Setting
Hi,
How to disable Withholding Tax in Form Setting for A/P or A/R service invoice document.
Thank you.
sridharHi Sridhar,
You cannot disable Withholding Tax from Form Setting in A/P or A/R for specifically service invoice only. If you want to disable you have uncheck from General Settings BP master, Item Master.
Thanks
Sachin -
i am not able to verify my apple id thro the link (in my email)erro message is " /cgi-bin/Webob-jects/IDMSAccount.woa/wa/vetemail )
i pad was bought in uk and is used in indialllaass,
Thank you for responding. I did not create a new ID. I went to Manage Your ID when changing my email. However, my problem is resolved. I called support and recieved help there.
Somehow my Ipod either wasn't registered to my Apple ID (even though I bought it from the Apple Store) or the registration didn't transfer with the email address change.
For some reason, though, I did lose all of my previous imessage conversations just because I switched my Apple ID email address. I also had to resync my Google accounts to Mail, Contacts, and Calendar.
Strange, but everything seems to be relatively back to normal now.
Maybe you are looking for
-
Maintenance of Z field in material master
Hi All, Could any body pls let me know where can I maintain the selection option for Customized field in material Master.( Means F4 options for any z filed) Any help will be highly appreciated. Regards, Meenakshi
-
Delegated Admin and non-flat user/group structures
Hello, I am trying to build a directory structure with several containers under an organization used to store different portions of userdata and group data (i.e. not only ou=people and ou=group, but also a few ou's like them). Server software is from
-
How do you change the background colour from white to black on the app screens Thanks in advance
-
Hyperion Financial Reports:Getting member selection from prompt
Hello everybody, I've a doubt on getting the member selection in GRID 2 from the prompt value set in GRID 1. Can anyone help me out??? Regards, Revathi
-
Power Mac G4, Dual 1GHz and OS V10.4.11- When I start up the "Power On Self-Test" shows FailureType: External cache, but when I run Tech Tool Deluxe V3.1.1 it shows that every thing passes is there some conflict there or do they not test the same thi