Posts

Part 7 Prac 5 : Install, Configure, And Troubleshoot Linux Web Server (Apache).

Linux Web server implementations : Apache server Nginx Lighttpd Apache Tomcat Monkey HTTP Daemon (used especially for embedded systems) There are more Linux web servers, but this list is the most used web servers. The most used web servers are Apache and Nginx. About Apache Web server : It is stable. It is flexible. It is secure. Install Apache Web server You can install Apache server on Red Hat based distros using the following command: $ dnf -y httpd Or if you are using a Debian-based distro, you can install it like this: $ apt-get -y install apache2 The Apache web server service is called httpd on Red Hat based distros like CentOS, while it is called apache2 in Debian based distros. If you are using a firewall like iptables, you should add a rule for port 80. $ iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT Or if you are using firewalld, you can use the following command: $ firewall-cmd --add-port=80/tcp To start your service and enable it...

Part-7 Prac 2: Study and demonstrate php syntax, data type, variable, function, array, superglobal variable and form (Self-learning exercise using this link: https://www.w3schools.com/php/).

Image
What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" .  PHP is a widely-used, open source scripting language   PHP scripts are executed on the server PHP is free to download and use PHP is an amazing and popular language! It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)! It is deep enough to run the largest social network (Facebook)! It is also easy enough to be a beginner's first server side language! Syntax   : A PHP script can be placed anywhere in the document. A PHP script starts with <?php and ends with?> <?php // PHP code goes here ?> Note: PHP statements end with a semicolon (;). Data   type   : Variables can store data of different types, and different data types can do different things. PHP supports the following data types:     String     Integer     Float (floating point numbers - also called dou...

Part 7 Prac 1: Installation and configuration of WAMP/XAMPP

Image
Search your browser for the XAMPP downloads sites. Choose one and click Download and Run. In several minutes, you will see the following window. Select the programs you want to install, in the menu that appears. Do not forget to select the Apache application. Then click Next  Look for the next window; choose the appropriate folder and click Next. Click Next. Click Next again. The XAMPP set software should start installing. Click Finish when the installation is complete. Understand that, when you start XAMPP, you may see an error message. Using the Config button, change the ports for this application and try to start Apache. Click besides Service and Application in the pop-up window. In a drop-down menu, click SQL-Server Configuration and then double click SQL Server Service Stop all running applications using the indicated buttons Close Computer Management and start Apache again. If all is done properly, you will see the running program.

Part 7 Prac 4: Create a simple registration and login system using the PHP and MySQL. This program is comprised of two parts: in the first part, create a user registration form, and in the second part we'll create a login form, as well as a welcome page and a logout script.

Image

Part-6 Prac 5 :Create Hello World program using Node.js.

Image
Node.js is an open source, cross-platform runtime environment for developing server-side and   networking applications. Node.js applications are written in JavaScript, and can be run within the   Node.js runtime on OS X, Microsoft Windows, and Linux.  Node.js also provides a rich library of various JavaScript modules which simplifies the  development of web applications using Node.js to a great extent. Name: Naisarg Modi ID:18CE055

Part-7 Prac 3: Study and demonstrate mysqli connection and CRUID operations with php.

Image
Coding CRUD with PHP and MySQL is one of the basics. PHP web programmers must be able to code it with less effort. We can perform this task using any of the three PHP Database extensions: Using the MySQL extension. Using the MySQLi extension. Using the PDO extension. PHP 5.5 deprecated the MySQL extension. It is not recommended to use these days. If you are programming with PHP, you'll have to use either MySQLi (i means improved) or PDO extension. With that in mind, we will use the PDO extension. It is the newest and actively developed way of programming these CRUD grids. Name: Naisarg Modi ID: 18CE055

Part-6 Prac 4: Create a webpage to show the dinner menu for a restaurant using AngularJS.

Image
ng-controller : The   ng-controller   directive defines the application controller.  A controller is a   JavaScript Object , created by a standard JavaScript   object constructor . ng-option : This element will then represent the null or "not selected" option. ng-change : The ng-change  directive tells AngularJS what to do when the value of an HTML element changes. ng-disabled : The ng-disabled  directive sets the disabled attribute of a form field (input, select, or textarea). ng-model :  it is a directive which binds input, select and textarea, and stores the required user value in a variable and we can use that variable whenever we require that value. It also is used during validations in a form.  Name: Naisarg Modi ID: 18CE055