High Performance Industrisl Soluations

Advanced PHP, MySQL and web security related topics brought to you by PHP Guruji.

accept-charset (HTML attribute)

The accept-charset attribute specifies the character encodings that the server can handle or process for input data.

Example

In this form, we tell the server to accept Windows-only character sets (which isn’t a brilliant idea, to be honest):



<form action="form-to-email.php" method="post"
accept-charset="windows-1252">
<div>
<label for="txtname">Name:</label>
<input type="text" name="txtname" id="txtname"/>
</div>

</form>




Value

This attribute can accept a space- and/or comma-delimited list of charset values. The default value for this attribute is the reserved string “UNKNOWN.” Browsers may interpret this value as the character encoding specified in the head of the document.


Internet Explorer’s support for accept-charset is buggy. If the attribute’s specified as "ISO-8859-1", IE will happily send data encoded as "Windows-1252".

JavaScript/Ajax Bootcamp

This course uses the Dojo JavaScript Toolkit, but the skills learned can be used with any of the standard JavaScript libraries.

Upon completion of JavaScript/Ajax Bootcamp, the student will:

Be able to demonstrate extensive knowledge of DHTML (JavaScript, HTML, and CSS)
Understand the Dojo Toolkit with emphasis on building slick, interactive, advanced web applications
Understand how to use Dojo's powerful JavaScript standard library as protection from the bare metal of the browser
Be able to create custom widgets that work on all of the mainstream browsers
Be able to put Dojo's extensive collection of accessible and internationalized turn-key widgets to work
Understand how to use Dojo's build system to minify and consolidate JavaScript files and templates so pages load lightning-fast
Be able to write good unit tests for web apps -- even interactive ones -- and be able to effectively test in all mainstream browsers
Understand how to animate content and perform 2-dimensional drawing in web appliations -- all without Flash!
Have a library of tips and techniques for production settings"
Make sure to check out the Syllabus as well on the page which looks really cool.

ZFSnippets.com - Zend Framework Code Snippets

Dave Marshall has pointed out a site he's developed that Zend Framework developers out there might find handy - ZF Snippets.

I thought [the djangosnippets.org site] was pretty cool, and realised we didn't have a one stop shop for Zend Framework code snippets. Symfony and CakePHP also have dedicated sites for this. [...] I thought it'd be another good learning opportunity to build my own with the Zend Framework, for the Zend Framework.

The site makes use of several of the Zend Framework components and has already been populated with a few examples to get things started. He has plans for its future including full searching, version history for each snippet, user collaboration and a scoring/ranking system for the quality of the snippet.

Using PayPal's Instant Payment Notification with PHP

On NETTUTS.com a recent tutorial has been posted about the integration of your PHP application with PayPal's Instant Payment Notification system.

Today we are going to combine Paypal with PHP to allow for the easy processing of payments on your website.

You'll need a Premier PayPal Account to get it all working as well as already have a server with a working PHP installation (there's no setup and install for that in this tutorial). There's ten different steps in the process and screenshots and code are provided the whole way:

* Creating a PayPal Account
* Enable IPN
* Building a Simple HTML Page
* Building a PayPal Button
* Writing ipn.php
* Creating the Database
* Account Creation
* Emailing the Login Credentials
* Invalid Payment Email
* User Login