Prev | Current Page 414 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

domain,your-name@
??somewhere-else.domain', 'emailgroup2' => 'foo@your.domain');
Script server permissions
Upload the script to your site??™s cgi-bin. Once there,
the script??™s permissions must be set. Exactly how this is
achieved depends on what FTP client you??™re using.
Some enable you to right-click and ???get info,??? while
others have a permissions or CHMOD command buried
among their menus. Consult your documentation and
find out which your client has. If you can, use the
CHMOD command to set the octal numbers for the
script (thereby altering the file permissions) to 755. If
you have to manually set permissions, do so as per the
screenshot to the right. Check that the script??™s file
extension matches that in your form element??™s action
attribute (.pl or .cgi??”the latter is usually preferred
by servers). Also, you might want to amend your
script??™s name (and update the form element??™s action
value accordingly), in an attempt to outfox automated
spammers. (This explains the rather odd name of the
script in the adjacent screenshot.)
Not all hosts require you to place CGI scripts in a cgi-bin directory: some prefer a cgi
directory, and some enable you to place such scripts anywhere on the server. If in
doubt, talk to your web host??™s support people about the specific requirements for
your account. Also note that not all hosts enable CGI support, and so if you want to
use such a script, check that it??™s possible with your host before you spend a load of
time trying to set something up that??™s not permitted and won??™t run anyway.


Pages:
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426