PHP MySQL Instructions Linux
PHP MySQL Instructions Linux
7. Follow the tutorial and reproduce all the activities as shown in the tutorial. 8. Create the le helloworld.php in the folder/opt/lampp/htdocs/phpacademy as it is required for this video tutorial. 9. To do this: (a) Open the terminal by pressing Ctrl-Alt-t keys simultaneously. (b) Now type cd /opt/lampp/htdocs/phpacademy in the terminal and hit ENTER key. (c) Now type gedit helloworld.php & and hit ENTER key. 10. Please note that the path of phpacademy folder shown in video is c:\xampp\htdocs\phpacademy This is your working directory in Windows. 11. But for Ubuntu Linux, the equivalent path is: /opt/lampp/htdocs/phpacademy 12. This will be your working directory for all the tutorials. 13. Henceforth, for all the videos, the .php and/or .html les should be created/copied in this directory. 14. You are free to create subdirectories here for each video tutorial so that you can manage all your les in a better way. 15. Now resume the tutorial and follow the instructions in the video. 16. Type all the code shown in the video in helloworld.php le and save periodically by clicking File and Save. 17. At time 1:07 min, the tutorial shows Firefox Web Browser to view helloworld.php le. 18. You can view this le in separate TAB or in a new web-browser. 19. Type http://localhost/phpacademy/ in the address bar of your Firefox browser. This will show a list of les. 20. Click helloworld.php. This will open helloworld.php in the browser.
Level 1
1. Right-click on the le named index.html, and choose Open with Firefox to open this le in the Firefox web browser. 2. Read the instructions given. 3. You will see three levels in the left handside panel Level1, Level2 and Level3. 4. Please click on the component Level1. 5. In this level, there are several tutorials. 6. First two tutorials are Installing in Windows and Installing in Linux. These tutorials are about the XAMPP Installation in the respective OS. 7. For the purpose of this workshop, XAMPP has already been installed on the machines. 8. Hence, skip these topics. 9. Locate the next topic Echo Function.
21. Now every time you make some change to 3.2 Instructions for Assignments helloworld.php using gedit editor, you 1. Attempt all the given assignments. need to save your changes and refresh your web browser by pressing F5 key to reect 2. Save your work in your working directory the changes. as shown in 3.1.1 22. In some of the future tutorials Google 3. After you nish this tutorial, locate the Chrome is used as the web browser, but next topic in the left-hand-side panel. you can continue using Firefox or any other web browser. 23. From time 1:55 min, the tutorial says about parse error. Please understand it carefully and try to reproduce the exact code as shown in the tutorial. 24. After you are done with this tutorial, you can move on to the next topic, Variables in Level1.
Similarly, remember to follow these three simple steps for all the tutorials
1. Go to the next Level/topic in the left-handside panel. 2. Create new le with same name as that mentioned in the video tutorial in /opt/lampp/htdocs/phpcacademy using gedit text editor. 3. Execute your PHP code in the web browser. 4. Reproduce all the steps shown in the tutorial. 5. Attempt all the assignments and save them in your working directory.
3.1
1. Create a folder in /opt/lampp/htdocs/ with your Name-RollNo-PHP (Eg.Sonia-04-PHP). 2. Remember to save all your work in your working directory. 3. Remember to save your work from time to time instead of saving it at the end of the task.