This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > cgi-bin





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author cgi-bin
rydershabs

2004-04-21, 10:30 pm

Does every web server have a cgi-bin? I want to add a form using formmail
and the file has to be added to the cgi-bin folder on the server, correct?
My client isn't all that intelligent when it comes to this sort of thing
(their server is on-site) and they claim there is no cgi-bin folder. Any
advice?


Karen Boyle

2004-04-21, 10:30 pm

> Does every web server have a cgi-bin?

No

> I want to add a form using formmail and
> the file has to be added to the cgi-bin folder
> on the server, correct?


Usually but not always.

> My client isn't all that intelligent when it comes
> to this sort of thing (their server is on-site) and
> they claim there is no cgi-bin folder. Any
> advice?


There may not be one - a server has whatever's been configured on it. An NT
server wouldn't have need for a cgi-bin.


--

Karen Boyle, PVII Support
Certified MX04 Developer
http://projectseven.com/




rydershabs

2004-04-21, 10:30 pm


"Karen Boyle" <kboyle@NoSpamPleaseprojectseven.com> wrote in message
news:c66c5v$k78$1@forums.macromedia.com...
>
> No
>
>
> Usually but not always.


Exceptions would be, for example?

>
>
> There may not be one - a server has whatever's been configured on it. An

NT
> server wouldn't have need for a cgi-bin.


So how would they create a cgi-bin folder - same way you'd create a folder
in Windows??? They have a Windows 2000 Server.

>
>
> --
>
> Karen Boyle, PVII Support
> Certified MX04 Developer
> http://projectseven.com/
>
>
>
>



Michael Fesser

2004-04-21, 10:30 pm

.oO(rydershabs)

>
>Exceptions would be, for example?


Depends on server configuration. On my server for example I can run CGI
programs in every directory, no need for a special cgi-bin.

>
>So how would they create a cgi-bin folder - same way you'd create a folder
>in Windows???


No. The cgi-bin folder has to be configured to allow execution of
programs in it. Just creating such a folder won't work in most cases.

Check the server configuration or ask the server admin.

Micha
Alan

2004-04-21, 10:30 pm


> So how would they create a cgi-bin folder - same way you'd create a folder
> in Windows??? They have a Windows 2000 Server


If it's a windows server, use ASP or ASP.NET It's what's native to script
with on that machine.

To use cgi-bin and some FormMail PERL script, would have to install and
config Perl.

My thoughts- people who don't know how to admin a server --- shouldn't.

If the person in charge of the box couldn't answer your questions- they
probably haven't been on top of the day to day stuff to keep the box clean
and updated.

Karen Boyle

2004-04-21, 10:30 pm

> > > Does every web server have a cgi-bin?
>
> Exceptions would be, for example?


An exception would be if the file is renamed with a .pl extension and
permissions set to allow the script to work outside a cgi-bin.

>
> So how would they create a cgi-bin folder - same
> way you'd create a folder in Windows??? They
> have a Windows 2000 Server.
>


They wouldn't. A cgi-bin is a special sandboxed directory that accepts and
delivers only specific content it's been configured for - an NT server
doesn't use a cgi-bin, it uses NT system functionality and file permissions.
If your client is on an NT server, you may want to look into creating an
..asp page for form handling ... you can try renaming the script to be
whatever.pl and see if that'd work - wouldn't be the better option for an NT
server though.



--

Karen Boyle, PVII Support
Certified MX04 Developer
http://projectseven.com/




Karen Boyle

2004-04-21, 10:30 pm

Alan's right - I wasn't thinking through to the processor needed by the
script itself. An NT server doesn't have PERL installed. You do need to
look for an ASP or ASP.net solution.

--

Karen Boyle, PVII Support
Certified MX04 Developer
http://projectseven.com/




Alan

2004-04-21, 10:30 pm



>
>
> If it's a windows server, use ASP or ASP.NET It's what's native to script
> with on that machine.


win2000 server, it's ASP.

try this script, if the mail method it uses is supported:
http://www.brainjar.com/asp/formmail/

it's pretty much identical to the Matt Wright Formmail, but in ASP. The
hidden fields in the form are the same or similar. There's a 4 page
tutorial there on setting it up.





Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews