PHP Resources
- PHP Home Site
- PHP Manual (local)
- PHP3 Manual (local)
- PHPLIB
- old PHP Manual (local)
- Netscripter.com
- Interview with Rasmus Lerdorf
- phpWizard.net
- PHP3-Mailinglist-Archive
- PHP/FI MySQL Demo Page
- SSC's PHP/Apache/MySQL Version Info
- Mike's Notes as he learns mysql
- asp2php converter
- Object-Oriented Programming with PHP - WebReview article by Jason Gilmore
- $PHP_SELF gives scriptname without parameters. Example script
- $QUERY_STRING gives just parameters.
- $REQUEST_URI gives scriptname with parameters.
- dirname returns directory from file or url
- basename returns filename from file or url?
- PHP Algorithm: Case-Insensitive Alphabetical Array Sorter
- PHPMyEdit script
- PHP Code Exchange
- Saving a variable value:
To save a PHP variable such that once set it is available when the document calls itself, make it the value of a hidden form variable:
<input type=hidden name="my_var" value="<?php echo $my_var ?>">
When this document calls itself, any value assigned to my_var is passed to the (same) document as a form variable, rather than having to pass it
explicitly in a query string. Taken from http://www.ontosys.com/reports/PHP.html
- Logging out:
Nck Kew's tutorial, "Login on the Web," points out, correctly, that Basic
Authentication provides no logout procedure, so you have to devise a
workaround. He suggests the following (copied directly from
http://www.webthing.com/tutorials/login.html
):
How-to . . .
Logout
HTTP has no provision to cancel a user's credentials, and there is no
general[8] way to do so. The workaround is to overwrite the user's
credentials with those of another valid user at your site. Create a valid
but unprivileged user ID, and a Logout URL which is permitted only to this
user. This URL is now a logout button. This of course still leaves you the
human task of persuading your users to use it.
Perl Resources