Docstoc

Web Programming for students on the IMD course - DOC

Document Sample
Web Programming for students on the IMD course - DOC Powered By Docstoc
					Web Programming on the IMD course

Contents

1. A staff guide to Web Programming for students on the IMD course

2. A student guide to Web Programming for students on the IMD course

3. Teaching resources

IMDWebProgrammingStaff01.doc

Last updated Thursday 14th June 2007

This document and associated teaching resources are available at :http://www.infj.ulst.ac.uk/wpstaffresources01.html

A staff guide to Web Programming for students on the IMD course This document introduces the Web Programming (WP) resources available to staff and students on the BSc Hons Interactive Multimedia Design programme (IMD) for the academic year 2007-2008. This document has two parts :Part 1 and Part 2 are for staff. Part 2 is for students. Target audience for Part 1 and Part 2 :Stephen Hagan, Programme Director, IMD programme Stephen Downey, IMD Information and Communication Technology (ICT) services (June) Huiru Zheng, School of Computing and Mathematics, COM427J2, Second Year Students Ian Fleming, School of Art and Design, DES310J2, Second Year students Terry Anderson, School of Computing and Mathematics, COM601J2, Final Year students Chris Murphy, School of Art and Design, DES511J1, DES512J2, DES513J2 – Final Year Project Students

Target audience for Part 2 All IMD students involved in developing static web material – HTML, CSS, XHTML All IMD students involved in developing dynamic web material – databases, scripting, web programming

1

Service constraints During the 2007-2008 academic year, the ICT services for the IMD programme will be provided on workstations in Room 16E28 with a login to the Block 16 Novell server. While adequate for static web material, the Block 16 Novell server cannot provide services for dynamic web material. Such services will continue to be provided on a hardware platform called the IMDSERVER identified as IP Number 193.61.149.80 Purpose of this document Aware of the multiplicity of ICT services and accounts confronted by IMD students, this document is designed to give both staff and students a mental map of the Web Programming services available to them during the 2007-2008 academic year.

2

Part 1 – A staff guide to Web Programming for students on the IMD course

Section 1 - Services for static web material available on the Block 16 Novell server IMD students login to workstations in Room 16E28 using a Novell userid and password. This service is known as the Block 16 Novell server. After login, individual students have a mapped Drive P: where they can store personal files. An individual Drive P: also has a public html directory/folder where students can place static web materials (HTML, CSS, XHTML) P:\12345678\public_html Browser access to a personal website on the Block 16 Novell server is available with the following URL :http://ijsr32/~12345678.e185uj2.students/

Development of static web materials within the Block 16 Novell service, placing them within the public_html directory/folder and accessing them via URL are general aptitudes within the skill set of most students.

3

Section 2 - Services for dynamic web material available on the IMDSERVER server While providing a rich set of services appropriate to Web Programming, scripting and database activities, the IMDSERVER requires a more sophisticated mental map to ensure access and manipulation by students. This section offers guidance and pedagogical diagrams for staff who wish to introduce students to the dynamic web services available on the IMDSERVER To facilitate explanation of the range of web programming services on the IMDSERVER, the following teaching resources are available to staff for use with students :wpdiagram01.doc – IMDSERVER hardware platform with multiple software servers wpdiagram02.doc – IMDSERVER Active Directory account – access with FTP wpdiagram03.doc – IMDSERVER MySQL server – access with MySQL Control Center wpdiagram04.doc – IMDSERVER Apache web server running PHP script wpdiagram05.doc – student at workstation accessing HTML resources on the Block 16 Novell server and web programming resources on the IMDSERVER wpdiagram06.doc – pictorial representation of student accessing HTML resources on the Block 16 file server and web programming resources on the IMDSERVER. wpdiagram07.doc – pictorial representation of IMDSERVER hardware platform running four software servers on it – Active Directory, IIS web server, Apache web server and MySQL server.

At the start of the academic year, Stephen Downey will issue 3 computer accounts to all IMD students. The userid and password are the same for each of the three accounts. These accounts are :userid and password for the Block 16 Novell server userid and password for the Active Directory account on IMDSERVER (193.61.149.80) userid and password for a personal database on the MySQL server located on the IMDSERVER (193.61.149.80)

4

Using the three computer accounts issued to IMD students by Stephen Downey

Computer Account 1 - the Block 16 Novell account The userid and password for the Block 16 Novell server gives a student access to the public_html folder where static web materials can be placed. This service is described fully in “Services for static web material available on the Block 16 Novell server” above.

Computer Account 2 - the Active Directory account on IMDSERVER The userid and password for the Active Directory account on the IMDSERVER allow students to place HTML files and web programming scripts in a personal folder/directory and execute/run them. For example a PHP script can be placed in the 12345678 folder/directory on IMDSERVER and then run from the Apache web server with the following URL :http://imdserver.infj.ulst.ac.uk:8080/~12345678/listcars.php There is a significant challenge for staff and students accessing the Active Directory account on the IMDSERVER as access is by FTP only. To FTP to an Active Directory account on the IMDSERVER the following parameters are required :Host Name = 193.61.149.80 User id = 12345678 Password = 12345678pw The FileZilla FTP software has been installed on the workstations in Room 16E28 to facilitate FTP access to a student’s Active Directory account on IMDSERVER.

5

Computer Account 3 - the MySQL account on IMDSERVER each IMD student has a database on the MySQL server identified by Student Number. Access to the database in the MySQL server is by userid and password. Connecting to 193.61.149.80 from a student workstation. From a student workstation, an IMD student can create a connection to their database on the MySQL server on 193.61.149.80 using MySQL Control Center. In MySQL Control Center, File New Name = temp Host Name = 193.61.149.80 User Name = 12345678 Password = 12345678pw Access to the same database on the MySQL server from a PHP script would use code along the following lines :$db1 = mysql_connect("193.61.149.80", "12345678", "12345678pw"); mysql_select_db("12345678_database",$db1);

There are a range of web programming technologies on the IMDSERVER including the IIS and Apache Web servers, interpreters for ASP, PHP and Perl and MySQL. This document and associated diagrams only illustrate PHP and MySQL. Further information on alternative web programming technologies is available at :http://imdserver.infj.ulst.ac.uk/12345678/testimdserver.html

6

IMDWebProgrammingStudent01.doc

Last updated Thursday14th June 2007

This document and associated diagrams are available at :http://www.infj.ulst.ac.uk/wpstudentresources01.html Part 2 - A student guide to Web Programming on the IMD course IMD students can use a variety of web programming services that are available on a hardware platform called the IMDSERVER identified by IP Number 193.61.149.80 There are several software servers running on the IMDSERVER hardware platform including an Active Directory server, a MySQL database server, an IIS web server and an Apache web server. All four servers are used in providing web programming resources. Diagram 1 shows the four software servers on the IMDSERVER hardware platform. Diagram 2 shows a student at a workstation accessing HTML resources on the Block 16 Novell server and web programming resources on the IMDSERVER

Using your active Directory account at 193.61.149.80 To access your Active Directory account on the IMDSERVER use FTP software such as FileZilla. Login using the following parameters in FileZilla :Address = 193.61.149.80 User = Student Number Password = your password The FileZilla FTP software makes it easy to copy files from your Drive P: to the Active Directory account on IMDSERVER. You can copy HTML and PHP files as well as other scripting languages

1

Using a student database on the MySQL server at 193.61.149.80 The MySQL server on 193.61.149.80 has a database for each student. The database is called studentnumber_database. You can access your database on the MySQL server using the MySQL Control Center software available on the workstations in the IMD lab. Login using the following parameters in MySQL Control Center :Host Name = 193.61.149.80 User Name = 12345678 Password = 12345678pw You can also access your database on the MySQL server using a script. Access using a PHP script would code similar to :$db1 = mysql_connect("193.61.149.80", "12345678", "12345678pw"); mysql_select_db("12345678_database",$db1); Using the IIS web server at 193.61.149.80 The IIS web server at 193.61.149.80 uses port 80 when communicating with client web browsers. If you have a PHP script in your Active Directory folder on 193.61.149.80, the IIS web server will interpret the script whenever the following request is sent by a client browser :http://imdserver.infj.ulst.ac.uk/12345678/listcars.php Using the Apache web server at 193.61.149.80 The Apache web server at 193.61.149.80 uses port 8080 when communicating with client web browsers. If you have a PHP script in your Active Directory folder on 193.61.149.80, the Apache web server will interpret the script whenever the following request is sent by a client browser :http://imdserver.infj.ulst.ac.uk:8080/~12345678/listcars.php

2


				
DOCUMENT INFO
Jun Wang Jun Wang Dr
About Some of Those documents come from internet for research purpose,if you have the copyrights of one of them,tell me by mail vixychina@gmail.com.Thank you!