SlideShare a Scribd company logo
Web Programming
Web Programming
<!--Form submitted with GET-->
<!--Form submitted with POST-->
http://example.org/index.php?list=user&orderby=name&direction=asc
http://example.org/index.php?list=user&order[by]=column&order[dir]=asc
Web Programming
Web Programming
name

The original name of the file

type

The MIME type of the file provided by the browser

size

The size (in bytes) of the file

tmp_name

The name of the file’s temporary location

error

The error code associated with this file. A value of
UPLOAD_ERR_OK indicates a successful transfer, while any
other error indicates that something went wrong (for example,
the file was bigger than the maximum allowed size).
Web Programming
http://cis.ncu.edu.jm
Web Programming
Web Programming
Web Programming
Web Programming
Web Programming
Web Programming
Web Programming
Web Programming

More Related Content

PDF
B ၵိႁိၸႃရိတ
DOCX
Basic linux commands
PPTX
Hebrew Windows Cluster 2012 in a one slide diagram
 
PDF
Php file handling in Hindi
PPT
PHP - Introduction to File Handling with PHP
PDF
Linux command line
PDF
Linux basic commands with examples
PDF
Introducing (DET) the Data Exfiltration Toolkit
B ၵိႁိၸႃရိတ
Basic linux commands
Hebrew Windows Cluster 2012 in a one slide diagram
 
Php file handling in Hindi
PHP - Introduction to File Handling with PHP
Linux command line
Linux basic commands with examples
Introducing (DET) the Data Exfiltration Toolkit

What's hot (17)

PDF
Using the command line on macOS
PPT
Common linux ubuntu commands overview
PDF
Swift 4 : Codable
PDF
RESTing with the new Yandex.Disk API, Clemens Аuer
PPTX
Php File Operations
PPTX
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
PDF
Basic linux commands for bioinformatics
DOC
Treebeard's Unix Cheat Sheet
PPTX
File management
PPTX
Linux files
PPTX
BIND DNS Configuration Red Hat 5
ODP
Vijai1
PDF
Red Hat Linux cheat sheet
PPT
Basic command ppt
PDF
JSOP in 60 seconds
PDF
[PDF] 2021 Termux basic commands list
Using the command line on macOS
Common linux ubuntu commands overview
Swift 4 : Codable
RESTing with the new Yandex.Disk API, Clemens Аuer
Php File Operations
CBSE - Class 12 - Ch -5 -File Handling , access mode,CSV , Binary file
Basic linux commands for bioinformatics
Treebeard's Unix Cheat Sheet
File management
Linux files
BIND DNS Configuration Red Hat 5
Vijai1
Red Hat Linux cheat sheet
Basic command ppt
JSOP in 60 seconds
[PDF] 2021 Termux basic commands list
Ad

Viewers also liked (10)

PPTX
8841 w 4 final storyboard multimedia presentation
PPTX
Interface Design
ODT
Storyboarding
PDF
Project storyboard
PDF
Effective Business Presentations with Storyboarding and Data Visualization
PDF
Storyboarding for Data Visualization Design
PPTX
Designing Multimedia Project
PDF
Storyboarding for Data Visualization
PPT
Interactive Multimedia
PDF
Designing Data Visualizations to Strengthen Health Systems
8841 w 4 final storyboard multimedia presentation
Interface Design
Storyboarding
Project storyboard
Effective Business Presentations with Storyboarding and Data Visualization
Storyboarding for Data Visualization Design
Designing Multimedia Project
Storyboarding for Data Visualization
Interactive Multimedia
Designing Data Visualizations to Strengthen Health Systems
Ad

More from Henry Osborne (20)

PPTX
Android Fundamentals
PPTX
Open Source Education
PPTX
Security Concepts - Linux
PPTX
Networking Basics with Linux
PPTX
Disk and File System Management in Linux
PPTX
Drawing with the HTML5 Canvas
PPTX
HTML5 Multimedia Support
PPTX
Information Architecture
PPTX
Universal Usability
PPTX
Website Security
PPTX
XML and Web Services
PPTX
Elements of Object-oriented Design
PPTX
Database Programming
PPTX
OOP in PHP
PPTX
PHP Strings and Patterns
PPTX
PHP Functions & Arrays
PPTX
PHP Basics
PPTX
Activities, Fragments, and Events
PPTX
Establishing a Web Presence
PPTX
Getting started with Android Programming
Android Fundamentals
Open Source Education
Security Concepts - Linux
Networking Basics with Linux
Disk and File System Management in Linux
Drawing with the HTML5 Canvas
HTML5 Multimedia Support
Information Architecture
Universal Usability
Website Security
XML and Web Services
Elements of Object-oriented Design
Database Programming
OOP in PHP
PHP Strings and Patterns
PHP Functions & Arrays
PHP Basics
Activities, Fragments, and Events
Establishing a Web Presence
Getting started with Android Programming

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Institutional Correction lecture only . . .
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
01-Introduction-to-Information-Management.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Pre independence Education in Inndia.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Renaissance Architecture: A Journey from Faith to Humanism
Final Presentation General Medicine 03-08-2024.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
VCE English Exam - Section C Student Revision Booklet
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial disease of the cardiovascular and lymphatic systems
Institutional Correction lecture only . . .
Supply Chain Operations Speaking Notes -ICLT Program
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Anesthesia in Laparoscopic Surgery in India
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Module 4: Burden of Disease Tutorial Slides S2 2025
01-Introduction-to-Information-Management.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
O7-L3 Supply Chain Operations - ICLT Program
Pre independence Education in Inndia.pdf

Web Programming

Editor's Notes

  • #3: This, of course, doesn’t mean that you can’t submit a form using GET—only that you will be somewhat limited in the size and type of data that you can send. Forexample, you can only upload files using POST, and almost all browsers implement limitations on the length of the query string that confine the amount of data you can send out with a GET operation.
  • #6: When a form is submitted using the GET method, its values are encoded directly in the query string portion of the URL.
  • #9: A file can be uploaded through a “multi-part” HTTP POST transaction.The MAX_FILE_SIZE value is used to define the maximum file size allowed (in this case, 50,000 bytes)
  • #10: Uploaded files will appear in the $_FILES superglobal array. Each element of this array will have a key corresponding to the name of the HTML element that uploaded a file (filedata in our case). The element will, itself, be an array with the following elements:The real problem with file uploads is that most—but not all—of the information that ends up in $_FILES can be spoofed by submitting malicious information as part of the HTTP transaction. PHP provides some facilities that allow you to determine whether a file upload is legit. One of them is checking that the error element of your file upload information array is set to UPLOAD_ERR_OK. You should also check that size is not zero and that tmp_name is not set to none.Finally, you can use is_uploaded_file() to determine that a would-be hacker hasn’t somehow managed to trick PHP into building a temporary file name that, in reality, points to a different location, and move_uploaded_file() to move an uploaded file to a different location (a call to the latter function also checks whether the source file is a valid upload file, so there is no need to call is_uploaded_file() first).One of the most common mistakes that developers make when dealing with uploaded files is using the name element of the file data array as the destination when moving it from its temporary location. Because this piece of information is passed by the client, doing so opens up a potentially catastrophic security problem in your code. You should, instead, either generate your own file names, or make sure that you filter the input data properly before using it.
  • #11: Even from a practical perspective, however, you will have to use POST in some circumstances; for example:• You need your data to be transparently encoded using an arbitrary character• You need to send a multi-part form—for example, one that contains a file• You are sending large amounts of data
  • #14: UNIX timestamp format (the number of seconds that have passed since January 1, 1970).
  • #17: Sessions are maintained by passing a unique session identifier between requests—typically in a cookie, although it can also be passed in forms and GET query arguments.