0% found this document useful (0 votes)
38 views2 pages

PHP MySQL Instructions Linux

This document provides instructions for practicing PHP & MySQL spoken tutorials in Ubuntu Linux. It outlines the general procedure, which includes listening to tutorials and reproducing the commands. It then provides specific instructions for the first tutorial on the echo function, including opening relevant files in a text editor and web browser. The document emphasizes saving work periodically and stresses following the same three steps for each tutorial: accessing the topic, creating any files, and executing PHP code in the browser.

Uploaded by

souvik5000
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

PHP MySQL Instructions Linux

This document provides instructions for practicing PHP & MySQL spoken tutorials in Ubuntu Linux. It outlines the general procedure, which includes listening to tutorials and reproducing the commands. It then provides specific instructions for the first tutorial on the echo function, including opening relevant files in a text editor and web browser. The document emphasizes saving work periodically and stresses following the same three steps for each tutorial: accessing the topic, creating any files, and executing PHP code in the browser.

Uploaded by

souvik5000
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Instruction Sheet for PHP & MySQL Spoken Tutorials in Ubuntu Linux OS

Spoken Tutorial Team IIT Bombay

The procedure to practice


1. You have been given a set of spoken tutorials and les 2. You will typically do one tutorial at a time 3. You may listen to a spoken tutorial and reproduce all the commands shown in the video 4. If you nd it dicult to do the above, you may consider listening to the whole tutorial once and then practice during the second hearing

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.

First tutorial: Echo Function


1. Locate the topic Echo Function. 2. Click on it. 3. You will see the video in the centre. 4. Click on the play button on the player to play the tutorial. 5. To view the tutorial in a bigger player, right-click on the video and choose View Video option. 6. Adjust the size of the player in such a way that you are able to practice in parallel.

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

Instructions for Practice

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.

You might also like