This week class , start with revision from previous class..about the checklist ...and discussion about all the problem arise from last week class..
checklist |
Troubleshoot session
__________________________________________________________
This 2nd session we learn about PHP (PreProcessor Hypertext)
From theory part - i do remember that PHP - using SQL as the database, apache as the testing server and using open source (Linux) as the platform.
1stly , we need to install Xampp - Xampp act as a cross platform for installing apache using Windows environment.It is free to download..
xampp installation |
interface of xampp |
For PHP we need to set the password for database security..please remember the username is root. For the password better we use something that is easy for us to remember .
One thing about Xampp - Xampp can help us save our password in text file.
Now start the developing dynamic webpage.. the same procedure as the checklist .. we have to create the database..An advice from Prof Zaidatun- use lowercase for all the field when creating the database.
interface for create dbase |
For creating testing server..this part is most critical part..if we wrongly give path we will never make a connection - gonna stuck here..so we must be alert n know the correct path.During this stage also,need to create new folder with the site name .
(Note: Change the security property for this folder -"Everyone" with full access.
Next- need to configure the database connection .
For the next stage- creating form with php extension.. this stage is for the designing of the layout form.The page will act as virtual communication interaction . This is the most important part when developing dynamic pages. We need to think about the logic flow of the pages along with user-friendly instructions for the user.
For the interaction, the use of form and text field for the input from user, along with suitable fields.Once we have created form for user , we need to create one more form for the admin to view.
During this process, the summary is as below :
Example : Register form - use insert record function
View form - use recordset and repeat region
(Note: Refer to previous handouts - same process as in ASP & PHP for this stage)
One thing to highlight using PHP- we can assign user authentication - to control user access .
user authentication |
Reflection / Summary for this week :
- PHP is more easy to configure and easy to understand.
- I am happy because now i have the knowledge to create pages using ASP and PHP.
No comments:
Post a Comment