- Use File
Transfer Protocol (FTP) program to create the necessary directories, upload
the files listed in Chapter 3 and set the file permissions. If you cannot
set the file permissions using FTP program, you need to telnet to your server
and change the file permissions.
- Locate and
change to your cgi directory (usually 'cgi-bin' or 'cgi-local'
which depends on your web host).
- Create a subdirectory
called 'emgb' under cgi directory to hold the neccessary files
by entering the following command:
- Change the
permission of the directory by entering the following command (Appendix
A explains how to set file permissions):
- Upload the
following files in ASCII mode to the directory created in step 3
above:
- class.fasttemplate.php
- emgb.php
- emgb_config.php
- emgb_default.php
- emgb_func.php
- emgb_msg.php
- emviewgb.php
- sessions.php
- sql_func.php
- Change the
permission of the above files by entering the following commands:
- chmod 644
class.fasttemplate.php
- chmod 644
emgb_config.php
- chmod 644
emgb_default.php
- chmod 644
emgb_func.php
- chmod 644
emgb_msg.php
- chmod 644
emviewgb.php
- chmod 644
sessions.php
- chmod 644
sql_func.php
- chmod 755
emgb.php
- Create subdirectories
admin and template under the directory created in step 2
by entering the following commands:
- mkdir admin
- mkdir template
- Change the
permission of the above subdirectories by entering the following commands:
- chmod 755
admin
- chmod 755
template
- Upload the
following files in ASCII mode to the subdirectory 'admin' :
- admin.php
- admin_func.php
- auth.php
- auth_func.php
- Change the
permission of admin.php, admin_func.php by entering the following command:
- chmod 755
admin.php
- chmod 644
admin_func.php
- chmod 644
auth.php
- chmod 644
auth_func.php
- Upload the
following files in ASCII mode to the subdirectory 'template'.
- template_emgb.html
- template_emgb_form.html
- template_emgb_preview.html
- template_emgb_thankyou.html
- template_emgb_view.html
- template_emgb_view_message.html
- Change the
permission of the above files by entering the following commands:
- chmod 644
template_emgb.html
- chmod 644
template_emgb_form.html
- chmod 644
template_emgb_preview.html
- chmod 644
template_emgb_thankyou.html
- chmod 644
template_emgb_view.html
- chmod 644
template_emgb_view_message.html
- Create subdirectory
admin under the directory 'template' by entering the following
commands:
- Upload the
following files in ASCII mode to the subdirectory 'admin' of
'template'.
- template_emgb_admin.html
- template_emgb_admin_guestbook_update.html
- template_emgb_admin_guestbook_view.html
- template_emgb_admin_guestbook_view_row.html
- template_emgb_admin_setting.html
- template_emgb_login_form.html
- Change the
permission of the above files
by entering the following commands:
- chmod 644
template_emgb_admin.html
- chmod 644
template_emgb_admin_guestbook_update.html
- chmod 644
template_emgb_admin_guestbook_view.html
- chmod 644
template_emgb_admin_guestbook_view_row.html
- chmod 644
template_emgb_admin_setting.html
- Upload the
following files in Binary mode to the your image directory.
- emlogo.gif
- emgb_corner_bottom_left.gif
- emgb_corner_bottom_right.gif
- emgb_corner_upper_left.gif
- emgb_corner_upper_right.gif
- width.gif
The directory
structure of 'emgb' looks like :
emgb (drwxr-xr-x)
|____admin (drwxr-xr-x)
| |___admin.php
(-rwx-r-xr-x)
| |___admin_func.php
(-rw-r--r--)
| |___auth.php
(-rw-r--r--)
| |___auth_func.php
(-rw-r--r--)
|____template(drwxr-xr-x)
| |___admin (-rwxr-xr-x)
| |
|___template_emgb_admin.html
(-rw-r--r--)
| |
|___template_emgb_admin_guestbook_update.html
(-rw-r--r--)
| |
|___template_emgb_admin_guestbook_view.html
(-rw-r--r--)
| |
|___template_emgb_admin_guestbook_view_row.html
(-rw-r--r--)
| |
|___template_emgb_admin_setting.html
(-rw-r--r--)
| |
|___template_emgb_login_form.html
(-rw-r--r--)
| |___template_emgb.html
(-rw-r--r--)
| |___template_emgb_form.html
(-rw-r--r--)
| |___template_emgb_preview.html
(-rw-r--r--)
| |___template_emgb_thankyou.html
(-rw-r--r--)
| |___template_emgb_view.htm
(-rw-r--r--)
| |___template_emgb_view_message.html
(-rw-r--r--)
|____class.fasttemplate.php
(-rw-r--r--)
|____emgb_config.php (-rw-r--r--)
|____emgb_default.php (-rw-r--r--)
|____emgb_func.php (-rw-r--r--)
|____emgb_msg.php (-rw-r--r--)
|____emviewgb.php (-rw-r--r--)
|____sessions.php (-rw-r--r--)
|____sql_func.php (-rw-r--r--)
|____emgb.php (-rwxr-xr-x)
Copyright(C) 2001
EternalMart All rights reserved.