PHP Cookbook

From Web Services Wiki

(Difference between revisions)
Jump to: navigation, search
Current revision (13:35, 27 April 2009) (edit) (undo)
 
(25 intermediate revisions not shown.)
Line 1: Line 1:
-
[[How to get your first PHP script running at Stanford]]
+
==Introduction==
 +
The University’s '''www.stanford.edu''' web hosting environment is different from those of commercial web hosting providers. Supporting services like [http://www.stanford.edu/services/webauth/ Webauth], [http://www.stanford.edu/services/afs/ AFS], [http://www.stanford.edu/services/kerberos/ Kerberos], and [http://www.stanford.edu/services/directory/ OpenLDAP] allow web developers to construct powerful, community-aware applications on an open source platform, but there are special security-related requirements that can be challenging to work through. In an effort to make it easier and faster for web developers to create (or adapt) applications to work in Stanford’s web infrastructure, IT Services provides this “cookbook” of freshly-reviewed and up-to-date PHP “recipes” (scripts and/or modules, sample code, and documentation).
-
[[How to protect your cgi-bin directory in AFS]]
+
Please help us make these recipes as tasty (and correct) as possible: use the wiki “talk” pages (via the “Discussion” tabs) to make suggestions or comments.
-
[[How to perform error handling in PHP]]
+
==Contents==
 +
 
 +
=== Basic Recipes ===
 +
 
 +
*[[How to get your first PHP script running at Stanford]]
 +
*[[How to protect your cgi-bin directory in AFS]]
 +
*[[How to perform error handling in PHP]]
 +
*[[How to create logs with PHP]]
 +
*[[How to create a flood-proof e-mail log in PHP]]
 +
*[[How to use cookies and sessions in a shared domain with PHP]]
 +
 
 +
=== Working with the MySQL Service ===
 +
 
 +
*[[How to connect to a MySQL database with PHP]]
 +
*[[How to use MySQL-based sessions]]
 +
 
 +
=== Using WebAuth ===
 +
 
 +
*[[How to fill out a person's name, email address and SUNetID on a form behind WebAuth with PHP]]
 +
 
 +
=== More Recipes ===
 +
 
 +
To accomplish more tasks, please take a look at the [[Stanford Web Application Toolkit]] which allows you to send email, upload files and create forms with some SPAM fighting measures already built-in. __NOTOC__
 +
 
 +
[[Category:Development]]

Current revision

Introduction

The University’s www.stanford.edu web hosting environment is different from those of commercial web hosting providers. Supporting services like Webauth, AFS, Kerberos, and OpenLDAP allow web developers to construct powerful, community-aware applications on an open source platform, but there are special security-related requirements that can be challenging to work through. In an effort to make it easier and faster for web developers to create (or adapt) applications to work in Stanford’s web infrastructure, IT Services provides this “cookbook” of freshly-reviewed and up-to-date PHP “recipes” (scripts and/or modules, sample code, and documentation).

Please help us make these recipes as tasty (and correct) as possible: use the wiki “talk” pages (via the “Discussion” tabs) to make suggestions or comments.

Contents

Basic Recipes

Working with the MySQL Service

Using WebAuth

More Recipes

To accomplish more tasks, please take a look at the Stanford Web Application Toolkit which allows you to send email, upload files and create forms with some SPAM fighting measures already built-in.

Personal tools