Skip to main content

Posts

Showing posts from 2020

PRACTICAL 7_5

PRACTICAL 5 Install, Configure, And Troubleshoot Linux Web Server (Apache). THEORY In this practical, we will talk about Linux web server or Apache web server specifically and how to install it and configure it to serve your content to others. Linux Web server Implementations There are many Linux web server implementations available for you to use: 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. Install Apache Web server You can install Apache server on Red Hat based distros using the following command: $ 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. ...

PRACTICAL 7_4

PRACTICAL 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. THEORY In this web page,a simple registration and login system have been made using PHP and MySQL. IMPORTANT TAGS & ATTRIBUTES: session_start(): A session is started with the session_start(). isset(): The isset() function checks whether a variable is set, which means that it has to be declared and is not NULL. header(): The header() function sends a raw HTTP header to a client. session_destroy(): To remove all global session variables and destroy the session, use session_destroy(). SCREENSHOT WEB PAGE: NAME :AYUSH SINGLA ID :18CE122 LINK : 18ce122.blogspot.com

PRACTICAL 7_3

PRACTICAL 3: Study and demonstrate mysqli connection and CRUID operations with php. THEORY In this web page, we will study regarding mysqlli connection and CRUID operation with php. IMPORTANT METHODS: Index Connect to Server Remove Action Update Action Create Table Remove Table SCREENSHOT WEB PAGE: NAME :AYUSH SINGLA ID :18CE122 LINK : 18ce122.blogspot.com

PRACTICAL 7_2

PRACTICAL 2: Study and demonstrate php syntax, data type, variable, function, array, superglobal variable and form. THEORY In this web page, we will study and implement basics syntax of php. IMPORTANT TAGS & ATTRIBUTES: Basic Syntax: When PHP parses a file, it looks for opening and closing tags, which are <?php and ?> which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows PHP to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP parser.             E.x. <?php        content                        ?> Data types: Although variables are not declared to be type-specific in PHP, PHP still has a common set of data types: Boolean, integer, f...

PRACTICAL 7_1

PRACTICAL 1: Installation and configuration of WAMP/XAMPP. THEORY Installation of XAMPP :  1. Download XAMPP from Apache Friends. 2. Double-click the file to run the installer. 3. Click the OK button on the warning to continue. 4. Click the Next button. 5. XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will be using most of these components, as such it’s recommended to leave the default options and click the Next button. 6. Use the default install location settings, or choose another folder to install the software, and click the Next button. 7. Click the Allow access button to allow the app through the firewall (if applicable). 8. Click the Finish button. 9. Choose your language (English or German). 10. Click the Save button. Configuration of XAMPP: The XAMPP Control Panel includes three main sections. In Modules, you will find all the services available. You can ...

PRACTICAL 6_5

PRACTICAL 5 Create Hello World program using Node.js.  THEORY In this web page, simple Node.js program have been created using localhost server.Node.js has a built-in module called HTTP, which allows Node.js to transfer data over the Hyper Text Transfer Protocol (HTTP). IMPORTANT TAGS & ATTRIBUTES: require(): To include the HTTP module, use the require() method. createServer(): Use the createServer()method to create an HTTP server. setHeader(): Sets the specified header. listen(): The server.listen() method creates a listener on the specified port or path. end(): Signals that the server should consider that the response is complete. SCREENSHOT WEB PAGE: NAME :AYUSH SINGLA ID :18CE122 LINK : 18ce122.blogspot.com