All posts in PHP

Speed up your site with CDN Javascript

speed_up_your_site_with_cdn_javascript

There are many ways of optimizing a site. If you’re using some of the popular javascript libraries, it might be worth spending a few minutes looking at the some of the free online CDN services.

Switching to a online CDN hosted javascript library is easy, and can be implemented in less than 10 minutes.

In this post we’ll take a look at the general benefits, and some of the most popular free Javascript CDN libraries.

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Automatically post to Facebook from PHP script

[Updated 21-09-2012 to support the latest Facebook changes] The importance of a professional presence on Facebook is constaltly increasing.

However supporting and publishing content on Facebook as a parallel channel to a normal website means increased work for many companies.

However posting on facebook doesn’t have to be a manual task that requires extra work. This post guides you to a solution that can easily be integrated in a existing CMS system, and enable cross posting of content to Facebook.

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Twitter OAuth the easy way – simple post to twitter script

Posting to twitter with OAuthAfter Twitter introduced mandatory authentication with OAuth, many of the current scripts for posting content to Twitter don’t work anymore.

OAuth can be great for more advanced authentication, but for a simple post to twitter script, it seems like a little overkill.

In this post you’ll learn how to create a simple script that uses a quick and dirty version of OAuth for posting new tweets to Twitter.

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Use PHP, MySql and Google Map API v3 for displaying data on map

Displaying multiple=Displaying data on maps can be useful in many situations.

By integrating tools like PHP, MySQL and Google Maps, you can relatively easy build customized maps for your website or blog.

In this post we’ll take a closer look on the possibilities, and build a  interactive map based on PHP, MySql and Google Map API v3.

To see what we’re building, see live example here

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Automatically update copyright text each year

Update copyright data automatically in wordpressHaving a copyright notice somewhere on your pages is always a good idea.

However to keep the copyright notice valid and ensure that your site looks professional, it needs to be updated each new year.

With the little trick in this post, you can insert a small piece of PHP that automatically updates your copyright text in your website or WordPress powered blog.

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Ajax autocomplete with jquery and php

Jquery autocomplete script with ajax and phpWith a autocomplete script you can make it easier for your users to provide valid input for a from, by providing suggestions as soon as the users starts to type in the first data.

In this post we’ll implement a autocomplete script, that uses jquery, ajax, PHP and MySQL for a smooth and easy to configure autocomplete solution.

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Measure PHP page loading time

Measure page loading times with PHPA important part of the users experience, when visiting a website, is the page loading time.

However loading times has been even more important to focus on after the latest updates of the Google ranging algorithm, where slow loading sites will get a penalty, and fast loading sites will get a bonus.

In this post we’ll create a PHP script that can be used to measure the loading time of  a PHP page.

Read more…

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS