Archive for the 'PHP' Category
Ajax Loader

Use this script to load XMLand HTML files with XMLHTTPREQUEST, otherwise known as AJAX. In the tag, just add the name of the file to load and the element to display the file in, usually a

element.

Go to Source

Sameer Borate’s Blog: 6 excellent charting libraries for php

Sameer Borate has a new post today looking at six charting libraries he thinks are some of the most excellent offered today.

Charts are an indispensable part of any data visualization work. People can grok visual representation of data easily than a textual variety. Today there are a huge number of free chart libraries available to display visualizations on websites. Below is a small list of some of the libraries available for displaying charts using php.

His list of six includes the following:

Go to Source

Noupe.com: 20 Useful PHP Components & Tutorials for Everyday Project

Noupe.com has posted their list of the top twenty useful components and tutorials that could be useful for PHP developers in their day to day work. The list includes:

When you combine some neat functionality courtesy of PHP with the cleverness of javascript you can produce some pretty cool results. [... This list is] the best 20 FREE PHP Components and Tutorials that you will likely need in many of your projects, they are all of the highest quality and more or less easy to configure. Give them a try.

Go to Source

Cross-domain communications with JSONP, Part 2: Building mashups with JSONP, jQuery, and Yahoo! Query Language

In the previous article of this series, we introduced JSONP (JSON with Padding) as a way to overcome browser
same-origin policy limitations while combining and presenting data from
third-party sources. This article continues this process and shows you how to use
Yahoo! Query Language (YQL), a JSONP service from Yahoo!, to build a mashup Web
page using jQuery.

Go to Source

Force Redirect to SSL with PHP

The code below works best on Apache web server. On IIS, you may need to use different variables from $_SERVER. Although the 301 header is optional, you may want to use it for search engine friendliness.

 

1
2
3
4
5
if($_SERVER["HTTPS"] != "on") {
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
exit();
}