The registration for the domain name know-waste.com expired, the credit card number had changed, and the most cost-effective solution is to run this blog as a subdomain.
- Web sites
- Live support
- Social networking / web 2.0
- RSS / aggregation
- Internet Marketing
- Application development, including RIAs
- email management
- Server management
- Toolkit / Framework development
- Technical support
- Product support
- Open source customization
- Content Delivery Networks
If you don’t have web stats running on your server, but you’d like to see who is visiting the pages, the following lines can be used.
The first line extracts the requesting IP addresses, sorts them, and then removes any duplicates. The second can be used to get the hostname for the IP address, if it is available.
This example shows the HTML and PHP to upload a file.
Browsers handle the MAX_FILE_SIZE input and accept attribute differently. Some will filter the files offered through the dialog box to only list those identified by the accept attribute. Some will allow you to select a file that is too large, and submit it to the server, without any content. In this case, the tmp_name is empty, error is 2, and size is 0.
In all cases you must validate the file on the server side.
HTML to upload a file:
PHP to accept it:
The link above demonstrates the use of a dijit ContentPane to request content from the server with a client-side request refresh, and error detection that allows the server to indicate when the requests should be stopped.
The intended use is to allow graceful monitoring of background scripts on a server.
- Use the ContentPane to display the content. A quote script is used to illustrate the content change.
- Have the server-side code count and issue a 303 See Other when processing has completed. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
- Have the client-side code catch the 303 and act accordingly. In this case, it changes the displayed text to reflect the status, puts up an alert box, and clears the timer.
Use View Source to view the client-side code, server-side code is listed at the bottom of the page.
This is a nice way to implement a refreshing iframe with dojo.