Mommy's Greetings

"Welcome to Mommy's Life Journey As Master Student..."
Feeds RSS
Feeds RSS

Weekly Reflection 9: PHP

Before mommy start with PHP coding, we must download xampp software which is a package of Apache Server and MySQL databases. Long time ago, we need to download and install one-by-one. But now, you can get it in a package. Besides xampp, there are other package that available in internet like EasyPHP, wampp, and many more. It is free because the software is open source. So, mommy give the xampp to download it:


To install it, you just click Next button untill end. Then, you need to Start the Apache and MySQL:


If you are using ASP before this, you must to stop the IIS first. To stop the IIS, you need to go to Administrative Tools -> Information Internet Services (IIS) Manager -> Stop button (at the right corner). Then you can Start the Apache.

Weekly Reflection 8: IIS, Microsoft Access (database), Guestbook

Today, mommy learned about ASP. When we want to use ASP coding, we need to make sure our IIS is in Start mode. What is IIS? IIS stands for Internet Information Services. How to check our IIS is in Start mode? Lets Mommy show you.


Start button -> Control Panel

Click Programs

Click System and Security -> Administrative Tools


Double click Internet Information Service (IIS) Manager

Look at the right corner, Manage Server.


CREATE DATABASE AND TABLES USING MICROSOFT ACCESS 2007

Go to Start button -> Microsoft Office -> Microsoft Access 2007

 Click Blank Database

 At the right corner, type database name in the Text Field. Example: database name is "data"

 Save As the table that had been created for you. Example: table name is "guestbook"

 Click View and choose Design View

Fill the field name of guestbook table.



CREATING GUESTBOOK USING ASP

Open Adobe Dreamweaver CS3.

 Choose ASP VBScript

 Save As at C:\inetpub\wwwroot\ASP

 Create table.

 At Properties below the page, width set to 50% and Align set to Center.

 At Properties below the page, click Page Properties button.

 Insert Text Field
Click at the Text Field, change TextField Name at the Properties below the page. (Every Text Field must give their names)

 Insert Submit button

 Click Application -> Database -> Custom Connection String

Click Test button. Make sure "Connection was successfully!"

Then, go to Server Behaviors -> Recordset (Query) -> choose Connection name and your guestbook table. After that, go to Server Behaviors -> Insert Record -> choose Connection name, your guestbook table, look at Column (check and make sure your field name in guestbook table match with TextField name in dreamweaver, set URL if the insert succeed -> OK. Try run the guestbook. Had Fun!

Weekly Reflection 7: Manage Sites

INTRODUCTION TO WEB-BASED DEVELOPMENT

STATIC WEBPAGE
DYNAMIC WEB PAGE
made of simple HTML pages that are uploaded on the server
use server programming capabilities to generate pages
passed straight to browser. (no database)
server process scripting language, querying database and other functions then passes resulting HTML page to browser

THE DIFFERENCE BETWEEN ASP AND PHP

ASP
VERSUS
PHP
Microsoft Server
SERVER
Linux or Unix Server, NT Server
Window-based platform (can run in Linux platform with install ASP-APACHE program)
PALTFORM
Window, Solaris, Linux, Unix
Visual Basic Programming
BASE LANGUAGE (SIMILARITY)
C/C++ Programming
Microsoft SQL (Microsoft product) - need to purchase the product
DATABASE
MySQL (free)
Run in its very own memory space
SPEED
Run much quick
Windows & IIS need to purchase. Using the original product.
COSTING & EXPENSES
Linux is open source. No need to purchase.

MANAGE SITES IN ADOBE DREAMWEAVER CS3: ASP

 Click at Manage Sites at the right corner. Then, click New button. Then, follow the steps below:

Click Next button.

 Click Next button. 

Click Next button. 

 Click Next button. 
 Click Next button. 

 Click Next button. 

 Click Next button.

Click Next button. 

  
Click Next button -> Done button -> Done button

Weekly Reflection 6: Text Entry Question, Make A Drag And Drop Game With Responses

In this week, mommy learned about Text Entry Question. Dr. Zaidatun already gave the task to do at home but we are not done it. So, Dr. Zaidatun asked us to do in class. After finished the task, Dr. Zaidatun teach us how to make a drag and drop game. Now, mommy will start with Text Entry Question first.

Class Activity 1 : Text Entry Question (Totally from Dr. Zaidatun's Note)

1. Create several layers as following and rename each of the layer with an appropriate name:


2. In layer bg, draw any object to acts a background of the application. For example, you can draw 3 rectangles to act as a background as followings:




3. In layer text1, type the following text:


4. In layer text2, type the following text:


5. In layer step, type the following text:


6. In layer question, type the question.





7. In layer button, drag two buttons from the Button Library as followings:




8. In layer stop, type the following action script:

var respon;
var answer;
respon = ""
answer = ""
stop();


9. Behind the Pause button, type the following action script:

on (release) { if (answer == "carbon monoxide and other hydrocarbons") { respon = "Correct!"; }
else { respon = "Incorrect! Your answer " + answer + " is incorrect"; } }

(In this picture, mommy already modified the action script)

10. Behind the Play button, type the following action script:

on (release) { gotoAndPlay ("Scene 2", 1);


11. Test the movie.









Class Activity 2 : Make A Drag And Drop Game With Responses 

1. Choose a background color and draw a big rectangle. Then, draw 3 circles in difference color like blue, red and green. Then, rename the layer as a background. 

(click the image above to view large image)

2. After that, lock the background by clicking on lock symbol.


3. Insert a layer and named it as answer. Type 3 text like "GREEN", "BLUE" and "RED". Then convert each text into symbol and choose Movie Clip behavior.

(click the image above to view large image)


4. Insert another layer and named it as response. Then, draw 3 small circles inside each big circles to make it as a target. Then, convert each small circles to symbol in Movie Clip behavior.



5. Then, right click at small circle and choose Edit in Place. Insert keyframe at Frame Number 2 and draw right symbol. After that, right click at the keyframe and choose Actions. Type stop(); at each keyframe. Then, click Scene 1 back.

(click the image above to view large image)


6. Right click on text symbol and choose Actions. Give an Instance Name for each big circles at Properties below the page. Then, put the actionscript as like below:

Put the instance name. This is important part of target.

You must change the instance name when put the action script on your answer.

X and Y need to change follow the target.

7. Test the movie