Forms To Go

Is it possible that a Form won’t process because it is outside of the cgi-bin folder on my hosting?

I used the action ‘Upload Stuff’ to upload my Forms To Go scripts but they sit with my HTML files on my server and I don’t seem to be getting the processed form via email as I have configured it?

Please help!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Are you using FTG to create CGI (Perl) scripts, or PHP scripts? If the
latter, then they can and should sit next to your form page within the
HTML root, unless you are using one of the very few servers that is
still configured to only execute PHP if it is in the cgi-bin directory
(creaky-old, in other words). If you are in fact making Perl CGI
scripts, then they not only have to be (manually) uploaded to your cgi-
bin directory, but they also need to have their permissions set to be
world-executable (chmod 755, usually).

Walter

On Jan 14, 2009, at 11:12 AM, lfcredbird7 wrote:

Is it possible that a Form won’t process because it is outside of
the cgi-bin folder on my hosting?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Its a PHP script. I have just recreated the script using PERL to try that also - so far no joy. I had a look at the hosting package that I am on and its Windows 2003? Don’t really do Windows - i’m an Apple man myself but it says that it supports PHP and PERL scripts.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

PHP on Windows is a squirrely beast, particularly when it comes to
mail. Since Windows has no notion of a sendmail service, you have to
(actually, your hosting provider has to) configure an SMTP server for
the mail() function to use. Since FTG sends mail to you after a
successful submission, you are entirely at the mercy of your host as
to whether that works or not. In my experience with Windows, that’s
mostly not.

For what it’s worth, the script should be in the same folder as your
form page and the success and error pages. You can use Freeway (and an
Action) to upload it, or you can use a traditional FTP/SFTP app to do
that. It should not go in the cgi-bin unless your host has explicitly
told you that PHP must be there.

For further debugging fun, pop the following into a plain text file
(use a proper programmer’s editor like TextMate or TextWrangler, not
Word or anything that purports to “style” text):

<?php
phpinfo();
?>

Name this file something cryptic, like asdfsdfu.php, and upload it
into your Web space. Navigate to it in a browser: http://your.server.com/asdfsdfu.php
and take a look at the output. Use your browser’s Find command to
search for the string smtp, and see what’s near it. You don’t want to
leave this diagnostic script up for long, or post a link to it on the
public Web (like this list), but if you want to send me a private e-
mail with a link or a screen-shot of the relevant part of the
configuration, I’ll take a look and see what I can suggest. Click on
my name in the Web interface to see my contact information, or use
Mail’s reply to sender command if you’re an e-mail junkie like me.

Walter

On Jan 14, 2009, at 11:36 AM, lfcredbird7 wrote:

Its a PHP script. I have just recreated the script using PERL to try
that also - so far no joy. I had a look at the hosting package that
I am on and its Windows 2003? Don’t really do Windows - i’m an Apple
man myself but it says that it supports PHP and PERL scripts.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options