Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Learning PHP, Part 2: Upload files and use XML or JSON to store and display file information

Nicholas Chase is the founder and creator of NoTooMi. In addition to technical writing for large corporations, he has been involved in website development for companies such as Lucent Technologies, Sun Microsystems, Oracle, and the Tampa Bay Buccaneers. He has been a high school physics teacher, a low-level-radioactive waste facility manager, an online science fiction magazine editor, a multimedia engineer, an Oracle instructor, and the chief technology officer of an interactive communications company. He is the author of several books, including XML Primer Plus (Sams 2002).

Summary:  This tutorial is Part 2 of a three-part "Learning PHP" series teaching you how to use PHP through building a simple workflow application. Take this tutorial if you have a basic understanding of PHP and want to learn about uploading files from the browser, sessions, or using PHP to process XML or JSON.

03 Jan 2013 - Nicholas Chase updated content throughout this tutorial to reflect current PHP, XML, and JSON technology.

View more content in this series

Date:  03 Jan 2013 (Published 21 Jun 2005)
Level:  Intermediate PDF:  A4 and Letter (709 KB | 34 pages)Get Adobe® Reader®

Activity:  50569 views
Comments:  

Summary

In this tutorial, you started to create the heart of the workflow application: The user's ability to add files. You enabled users to log into the system and create a session that recognizes them and upload a file. You saved the file on the server, and you used first XML, then JSON to save information about it. Along the way, the following topics were covered:

  • Creating a session
  • Using an existing session
  • Uploading a file
  • Creating an XML file using DOM
  • Loading XML data using DOM
  • Manipulating XML data using DOM
  • Creating JSON data
  • Manipulating data using JSON
  • Saving and loading text files

In Part 3, you'll complete the application.

7 of 10 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source, Linux, XML
ArticleID=133660
TutorialTitle=Learning PHP, Part 2: Upload files and use XML or JSON to store and display file information
publish-date=01032013
author1-email=ibmquestions@nicholaschase.com
author1-email-cc=