Write the php script to output the session contents, PHP Web Programming

Assignment Help:

Question:

(a) A website wishes to use sessions to store the user's name and display a welcome message on all its pages. The user enters his username in a textbox called "username".

(i) Write the PHP script to create the session and store the user's name in that session.

(ii) Write the PHP script to output the session contents to the user only if the session exists and it is not empty.

(b) Write the PHP script that allows you to:

(i) Create a file named "logfile.log" in the same folder.

(ii) Insert the text "Monday 12 Oct" in this file.

(c) A website wishes to store user complaints in a database. The user enters his comments in a textarea called "complaints" and the form uses the POST method.

Write the PHP script to retrieve and clean up the user input before it can be safely stored in the database and explain your code.

(d) Outline the md5() function and provide an example of a situation where it is necessary to use the md5() function.


Related Discussions:- Write the php script to output the session contents

We a program to post an linkedin update, We a program to post an LinkedIn u...

We a program to post an LinkedIn update on behalf of a member Coding requested to permit a website user to post an update with pre-created content on their LinkedIn feed. The

Want simple/basic word press website created, Want SIMPLE/BASIC Word Press ...

Want SIMPLE/BASIC Word Press Website Created In want of a US based freelancer to create a very simple/basic word press website in the next 24 hours. Brand Identity completed as

Opencart extension and integration with ebay similar site, OpenCart Extensi...

OpenCart Extension and integration with Ebay similar site We want an integration extension among OpenCart and the overstock/deal website Fyndiq.se Required functionality a

Market value targeted to regions or countries, A website that permits you t...

A website that permits you to enter data for a specific product make and model and perform a search on multiple websites, of any kind to generate a report of the different prices,

We are looking for web programmer, We are looking for Web Programmer We ...

We are looking for Web Programmer We are a design as well as marketing firm in need of web support. Fundamentally we will design the look of our clients' websites as well as

We need a wordpress expert for assistance, We need a Wordpress expert for a...

We need a Wordpress expert for assistance We have bring a wordpress site that is too slow. Our programmer says it's for the reason that of the CivicRM program being slow- We

Gravity forms wp expert wanted to re-program form, Gravity Forms WP Expert ...

Gravity Forms WP Expert Wanted To Re-Program Form We want a TRUE WordPress/Gravity Forms developer who is expert at customizing a form with a specific UI/Look as well as Feel. O

Creating a web application, 1. Introduction The assignment is a continua...

1. Introduction The assignment is a continuation of the first assignment. You will use all your knowledge of web and internet to develop a fully functional site. We expect your

Serbian php developer wanted for long terms, Serbian PHP Developer wanted >...

Serbian PHP Developer wanted > Must be creative with UI Experience, etc We are interested for a RESPONSIBLE as well as well-organized programmer with the following requirements

Easy flash to html5 game bug fix, Easy Flash to HTML5 GAME Bug Fix, I will ...

Easy Flash to HTML5 GAME Bug Fix, I will provide the source. Fix some bug Desired Skills are MySQL Administration, HTML, PHP

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd