22.2. FTP

. FTP FTP sites (file transfer protocol) store pieces of software that can be accessed from the Internet. If you've heard of FTP at all, it was probably under one of two circumstances— either you've downloaded software from an Internet FTP site, or you've created and maintained your own Web site | . FTP FTP sites file transfer protocol store pieces of software that can be accessed from the Internet. If you ve heard of FTP at all it was probably under one of two circumstances either you ve downloaded software from an Internet FTP site or you ve created and maintained your own Web site. POWER USERS CLINIC CGI Scripts A CGI script Common Gateway Interface is a program written in a language like Perl AppleScript or Python that runs right on your Web page. You ve seen these on many a Web page Web-visitor counters interactive polls shopping forms and so on. Apple even includes a few of them with Mac OS X they re in your System Library Perl version number CGI Scripts folder for example. If you ve got a CGI script of your own that you d like to incorporate into your Web page copy it into your Library WebServer CGI folder. This means you administrators. The script s Web address becomes http cgi-bin scriptname. Substitute your actual public IP address and the real name of the script file of course. Unfortunately you won t get far testing out your CGI script because it comes with its execute permissions turned off. To turn them on again you need to use the chmod change mode command. You can use a permission-changing shareware program like SuperGetInfo available from the Missing CD page of or you can do the job in Terminal as described on Section . In this case you d type sudo chmod 755 test-cgi. The chmod command is a quick way to change access privileges including Execute permission which isn t available in the File Get Info window. The 755 business is a long story which you can read at any Terminal prompt by typing man chmod and hitting Enter. In short however this code is shorthand for Change the permissions so that everyone else can read and execute but not make changes to this file -just what you want for a CGI script. After hitting Enter you re ready to proceed. Now sudo asks for your administrator s password. Once you

TỪ KHÓA LIÊN QUAN
TÀI LIỆU LIÊN QUAN
1    4    0
1    2    0
1    4    0
1    3    0
1    2    0
1    2    0
1    4    0
1    2    0
1    5    0
1    2    0
1    4    0
1    3    0