Friday, January 6, 2012

Week 9: ASP Vs PHP


Summarize the difference between ASP and PHP in a from of table such as following:

ASP
(Activity server pages)
Vs
PHP
(Hypertext preprocessor)
Internet Information Server (IIS)
Server
Linux or Unix Server
Need to purchase Windows with IIS installed on server.
ASP requires initial cost and ongoing cost for maintenance and debugging. ASP libraries will come with a price tag.
Terms of Price
PHP is free it only require running on a Linux Server which is free.
ASP developers is limited
Developer community
PHP developers have contributed to a variety of open source projects.
PHP has a fairly large developer community that is active in reporting bugs and creating additional PHP libraries.
Need to purchase MS-SQL which  is a product of Microsoft
Database Connectivity
MySQL which is free.
ASP can only work with Window based platforms.
Platform compatibility
PHP programs can also run in  Windows, Solaris, Unix and Linux
ASP uses Visual Basic as base language.
Base Language
PHP uses C/C++ as base language and most syntax are similar to each other.
Need to buy additional tools to works with its program.
Costs
Most of the tools associated with open source software programe.
ASP runs slowly  due to ASP uses an overhead server
and is uses a COM based architecture,
Speed
PHP codes runs much quickly, it runs in own memory space

Monday, December 12, 2011

Week 12 : PHP and MySQL

Doing the same thing but this time is using PHP and MySQL instead of ASP and Microsoft Access.

Step 1 : Set up the site as firstphp



Step 2 : Set up the database by using My SQL, create the datebase with the name firstphp.
             There are four field that i was using together with the type of variable.



Step 3 : Set up the connection , select the database firstphp. Test the connection.



Step 4 : Set up the registration form for php.
             By insert the form, and text field and button.
             Make sure the text field must be rename it as name, username, password and remarks.
             Save it as php.





Step 5 : Insert the record to the form it mean that write the data to the form.

          

Step 6 : Make sure each text field insert into the correct field.


This this the view of the page when explore it through firefox.

Step7 : Set up the view.php type the interface like this


Step 8 : we using recordset to view the record have been insert.

Step 9 :Select by highlight the area that we want to repeat then click on repeat region in server behavior.

          Remember to select all record.

 Step 10 : Explore in the mozila we able to view the record that we key in.


Monday, December 5, 2011

Week 11: Exercise 1

The registration page for user to register to join the website.


The users able to see other member who was joined the website after they have registered themselves.



Reflection:
1. We have to create three main item.
  •  registration page - to let the user to record the data
  •  view page - to let the use view the data.
  • data base - a place to store all the data.
 2. Create connection
Create the connection so that there is a bridge for user to store the data from registration page
to data base.
User also able to view the data at view page from the data base.


3. Registration form
we have to create the form and the text field, so that user able to key the data.

Week 11: Using Active Server Pages in Dreamweaver

This was the form that i have created:



The result after key in the Data:

Saturday, November 12, 2011

Week 8: (2) Group Assignment 1: By Zune

I was in-charge in doing this part.The last part of the assigbment was in-charge by the Fatemeh.

Reflection:

Main Menu ( Scene 1 )

1. Buttons were download from internet and manipulated by photoshop. I was really lucky that i have took visual static in last sememster, so that i can use my basic photoshop skill to develope the buttons which are suitable for this assignment.
2. Action script like gotoAndplay, stop and etc were applied.

Drag and Drog game ( Scene 2 )

1. All the object and its location need to convert it to the movie symbols.
2. We need to have more patient to set all the coordinate value ( x, y ) for the object in the action script.
3. This is the action script for the "apple" :
on (press) {startDrag(this);}
on (release) {stopDrag();
if ((this._x>=33.0) & (this._x<=77.0) & (this._y>=213.6)& (this._y<=263.0)) {_root.box1.gotoAndStop(2);} else {_root.box1.gotoAndStop(1);this._x = 393.0;this._y = 118.0;}}

Sujective question ( Scene 3 )
1. For the subjective question user are allowed to key in "d" and "D" both answer will be prompt up with correct statement. I have use if, if else and else in this action script.
2. The action script for this scene.

on (release, keyPress "") { if
(alphabet == "d")
{res=":) Congratulation!!! '"+alphabet+"' is the answer.";}
else if
(alphabet == "D")
{res=":) Congratulation!!! '"+alphabet+"' is the answer.";}
else
{res=":( Opsss!!! Incorrect. Your answer '"+alphabet+"' is incorrect,
Please try again....";}}

3. Static, input and dynamic text box were used in this scene.
4. I have displayed the answer that the user key in by assigned the variable "alphabet" in the input text box and display it again in dynamic text box.

MCQ Question 1 ( Scene 4 )

1. I have embedded audio element in MCQ: Question 1. Your welcome to try it by mouse you mouse to the button "D", "E" and "F" and you can heard the sound.
2. I have cut the sound of the alphabet and import it to the library before drag it to the the button in "over".
3. i don't really satisfy with the sound that i cut, since i was using free software which was simply download it from internet " free video cutter". I able to convert video that i need into mp3. This free ware is unable to cut at the actual sound lenght that i need, due to it have minimum lenght for every output.

MCQ Question 2 ( Scene 5 )

1. I have applied my dialog skill in this part.
2. In the action script, i have get the value from the combo box and displas it's respond at the dynamic box.
3. This was the script:

on (press) {
if(box1.getValue()=="H"){
jg="Good! 'H' is correct answer.";}
if(box1.getValue()=="I"){
jg="Sorry, 'I' is wrong answer! Please select again !";}
if(box1.getValue()=="J"){
jg="Sorry, 'J' is wrong answer! Please select again !";}
gotoAndStop(2);}

Week 8: (1) Group Assignment 1: By Faridanura

This part was did by my team member Faridanura. I couldn't link the different swf files in one display screen. So in this part the button that able to click is "About Us" and " Exit".
Reflection:
1. Buttons were download from internet and manipulated by photoshop.
2. Action script like gotoandPlay, loadMovieNum, fscommand, stop and etc were applied in here.

The other details will be reflect  in Faridanura's blog. You are welcome to comment it.