Paulund

PHP Category

Create A Weather Application With Google API Using PHP

Weather

Google has a lot of APIs which any developer can use to add a bit more interaction to your application. Some of the APIs need an API key to access the data you want, but there are others which don’t need any API key at all.

Previous examples of using a Google API is getting the feedburner count using PHP. Today we are going to use another hidden Google API to get the weather for a certain area. The Google weather API allows you to send it a location from anywhere in the world and get the current weather and the future weather.
Read More →

Increase The Default Maximum File Upload Size In PHP

If you have a website which allows users to upload their own images then you will need to change the default maximum files size upload.

The PHP default for all file uploads is 2MB, so the server will error if you try uploading a file more than 2MB. This can be a problem if you want users to upload pictures as most pictures now are going to be far more than 2MB.

The idea of putting the file size at a low limit is to help the server save bandwidth, which you will need if you are on a shared hosting account. But if you want to change this you will need access to the PHP.ini file.
Read More →

Make Cross Domain AJAX Calls With jQuery and PHP

gnome-session-switch

Introduction

Now on the web AJAX calls are becoming more and more common, they can be very useful to create a better user experience on your web applications. But on most modern browsers they will block any cross domain AJAX calls mainly for security reasons and the fact that AJAX uses client side scripting which might not work on another domain.
Read More →

How To Use Twitter API To Display Your Twitter Updates

Twitter Disc
It is common for blogs to display their twitter feed on the page which is mostly displayed in the sidebar of your wordpress blog.

Now there are many ready made wordpress plug-ins which will display your twitter feed and some have much more functionality. But do you really need more? From a twitter feed you just want your twitter feed.
Read More →

PHP Code to Combine and Compress CSS

CSS File
A couple of Google updates ago they worked on page loading speeds, so if your page loaded faster then your website will be ranked higher.

Easy ways to improve on your website speed is:

  • Reduce the size of the CSS and JS files.
  • Reduce the number of HTTP requests.

Therefore this PHP snippet will do both for your CSS Files.
Read More →

Learn How To Create An AJAX PHP Coming Soon Page

To download source files go to demo page.

Demo

In this tutorial we are going to learn how to create a Coming Soon Page which allows the visitor to send their email address which can be delivered to an email or to be stored in a database. This will just a similar approach to a contact form but then a setting will decide how the email address is stored.
Read More →