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 need senior developer experienced in python & django, We need Senior Dev...

We need Senior Developer experienced in Python & Django Company Data aggregation project where we are aggregating online data from multiple sources as well as enabling companies

World wide web, The World Wide Web is defined as a "wide area hypermedia in...

The World Wide Web is defined as a "wide area hypermedia information initiative amongst to provide universal access to big universe of documents". World Wide Web gives users on com

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

Desire for help in metasearch infrastructure on website, Desire for help in...

Desire for help in Metasearch infrastructure on website We are seeing for experienced computer programmers that have built search engines met search or indexing sites in the pas

Newbi, how use the simple aplication for web with php fron iner and mysql t...

how use the simple aplication for web with php fron iner and mysql the databse

Seeking a web developer to transfer site, Amazon Webstore Developer Seek...

Amazon Webstore Developer Seeking a web developer to transfer functionalfitnessoutlet.com to an amazon webstore. Job Description- We're looking for a Web Developer. Your r

Customization to cs-cart, We need some customized development for CS-Cart v...

We need some customized development for CS-Cart v4 Multi-Vendor Edition. We are taking a freight company to handle delivery of the goods. Vendors only require to pack the goods

Performance issues on amazon ec2, I presently host my websites on Amazon EC...

I presently host my websites on Amazon EC2. I seem to be having several performance issues such as longer than expected loading times. My sites build with Wordpress. I use Cl

Magento community with enterprise features on amazon aws, Magento community...

Magento community with Enterprise features on Amazon AWS We are concerned to run Multiple Magento community instances on Amazon AWS to support very high traffic. We as well like

Html headers, These are used to indicate the headings of sections or sub-se...

These are used to indicate the headings of sections or sub-sections in document. Based on the desired size of the text, any of six obtainable levels ( to ) of h

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