Posts

Showing posts from May, 2023

Teacher Subject Allocation Management System using PHP and MySQL

Image
  “ Teacher Subject Allocation Management System ” is web-based application system that helps to allocate subjects to the teachers. In Teacher Subject Allocation Management System educational administrators allocate different subjects to the teacher and teacher check that allotment by their employee id and Name. Project Requirements Project Name Teacher Subject Allocation Management System in PHP Language Used PHP5.6, PHP7.x Database MySQL 5.x User Interface Design HTML, AJAX,JQUERY,JAVASCRIPT Web Browser Mozilla, Google Chrome, IE8, OPERA Software XAMPP / Wamp / Mamp/ Lamp (anyone) Project Modules In this project, we use PHP and   MySQL  database. It has one module i.e  Admin Admin Module Admin is the super user of the website who can manage everything on the website. Admin can log in through the login page Dashboard : In this section, admin can see all detail in brief like the total course, total subjects and total teachers. Course:  In this section, admin can manage the course (add/

Automatic Logout after 10 minutes of inactive Session in PHP

Image
In this tutorial, we will how to apply automatic logout after 10 minutes of inactive session. Step 1:  Start a new session by using  session_start()   the function at the beginning of the script. Step 2:  Set a timer when the user logs in or accesses a page by setting a session variable with the current time, for  $_SESSION[‘last_activity’] = time(); Step 3:  On every page load, the system checks the difference between the current time and the last activity time. If the difference is greater than 10 Minutes(10*60 seconds), the user session will logout and redirect to the login page. Click : https://phpgurukul.com/automatic-logout-after-10-minutes-of-inactive-session-in-php/   1 2 3 4 5 6 7 8 9 <?php session_start ( ) ; // Check if last activity was set if ( isset ( $_SESSION [ 'last_activity' ] ) && time ( ) - $_SESSION [ 'last_activity' ] > 600 ) { session_unset ( ) ; // unset $_SESSION variable session_destroy ( ) ; // destroy session data in

30 Basic HTML Interview Questions and Answers

  1. What is HTML? HTML stands for Hypertext Markup Language. It is the standard markup language used for creating web pages and applications on the internet. HTML uses various tags to structure the content and define the elements within a web page 2. What are the basic tags in HTML? Some of the basic tags in HTML include: <html> : Defines the root element of an HTML page. <head> : Contains meta-information about the HTML document. <title> : Sets the title of the HTML document. <body> : Defines the main content of the HTML document. <h1> ,  <h2> ,  <h3> , etc.: Heading tags used to define different levels of headings. <p> : Defines a paragraph. <a> : Creates a hyperlink. <img> : Inserts an image. <div> : Defines a division or a container for other HTML elements. 3. What is the difference between HTML and CSS? HTML (Hypertext Markup Language) is used for structuring the content of a web page, while CSS (Cascading Style Sh