Digital Handyman
 
   
  Digital Handyman<-->
msgbartop
Resourceful problem solving in a digital world
msgbarbottom

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 107

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 109

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 111

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 112
17 Feb 09 PHP mail() “Mailed By” fix

When using the php mail() function to send mail on my websites, I dont want the “mailed by:” header being sent. I just recently discovered an option to add to the mail function that masks the originating server. Simply add “-femail@domain.com” as the last option in the function call.

mail ($to, $subject, $message, $headers,"-femail@domain.com");

and your “from” address from the headers will be all that shows up.

-Andre

Tags: ,


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 107

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 109

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 111

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 112
09 Feb 09 Kill the Facebook Ad Column

If you use facebook with AdBlock Plus, you may notice that there is still that pesky column of ads on the right. A simple yet effective fix is to add this to your custom filters of adblock:

facebook.com#*(class*=adcolumn)

Voila! The ads are gone!

-Andre

Tags: ,


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 107

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 109

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 111

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 112
16 Dec 08 “Fixing” experts-exchange.com for free

If you have ever searched Google for almost anything script or programming related, you probably have found results from the “help” site www.experts-exchange.com. This site contains a huge number of tech-related threads and is very well indexed in Google. Unfortunately, this storehouse (not necessarily the best source, but usually fairly good info) is locked behind a $13/mo subscription fee.

Never fear, however, because you have just found the solution!

Step 1: Bypass Logon
The site uses cookies to see if you are an authorized user (making visible the solutions). For some reason, a complete lack of cookie means you have access to the solutions. So first go to your cookies and either delete all of them or find any from experts-exchange.com and remove them. Then in your privacy/security settings ban cookies from experts-exchange.com. You can test that this has worked by searching something on Google and then clicking on a result from experts-exchange. You will still see all the “Get a 7 day trial” stuff but way way down at the bottom (after all the links) you will see the solutions visible!

Step 2: Negate the Scrolling
Now that the solutions are visible, lets bring them to the top of the page so we can see them without scrolling down a hundred feet of links. To do this, you can either use this link (bookmark it) to fix the experts-exchange page once its loaded or you can download the script directly and implement it yourself (with something like greasemonkey).

The script works with Safari 3.2 and FireFox 3.1. If you are using IE you probably wont ever be on experts-exchange. If you are, you need to use a different browser. I also noticed that the solutions only appear the first time you visit the page from google. Apparently refreshing the page removes the solutions.

Thats about all there is to it. Let me know what you think.

-Andre

Tags: , , , , , ,


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 107

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 109

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 111

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 112
11 Nov 08 PHP: HTML Table from a $string :: updated!

Working with databases and php often makes tables an important part of the construction and often final result of the project. I decided to simplify this process by creating a function that would generate a table based on the data in a single string of input.

PHP:
  1. function tabler($data,$options="border=\"1\" cellpadding=\"5\" align=\"center\""){
  2. $tr = explode("%tr;", $data);
  3. $trLength = sizeof($tr);
  4. $table="
  5. <table border="0">\n";
  6. for($i=1; $i&lt;$trLength; $i++){
  7. $table.="
  8. <tbody>
  9. <tr>\n";$td = explode("%td;", $tr[$i]);
  10. $tdLength = sizeof($td);
  11. for($x=0; $x&lt;$tdLength; $x++){
  12. $table.="
  13. <td align="\&quot;center\&quot;">$td[$x]</td>
  14. \n";
  15. }
  16.  
  17. $table.="</tr>
  18. \n";
  19. }
  20. $table.="</tbody></table>
  21. ";
  22.  
  23. return $table;
  24. }
  25. ?&gt;

The syntax is pretty simple.

PHP:
  1. tabler($TableContent,[table options]);

for example

PHP:
  1. tabler("%tr;Header Row 1%td;Header Row 2%td;Header Row 3%td;Header Row 4%tr;Item 1%td;Item 2%td;Item 3%td;Item 4");
  2. ?&gt;

would create:

Head Row 1 Head Row 2 Head Row 3 Head Row 4
Item 1 Item 2 Item 3 Item 4

You do not need to close <tr> or <td> tags in your string, just start a new row with %tr; and each new <td> with %td; (you do not need to use the %td; on the first cell of a row, so you will never have %tr;%td;)

The options are printed un-modified in the table tab ie <table $options> so use the standard attributes syntax. The default options are " border='1' align=''center' cellpadding='5' ".

PHP:
  1. tabler("%tr;First Name%td;Last Name%tr;Andre%td;Fredette","border='0' align='left' cellpadding='2'");
  2. ?&gt;

results in:

First Name Last Name
Andre Fredette

So far I haven't found anything that breaks the function, but let me know if you do :) I usually iterate through the data using a single variable and the ".=" to build the table data string.

::edit::

I added the option to put options in each td tag. Before each td string, simply put your options (like valign='top') and then the %op; tag. So your string would look like:

PHP:
  1. tabler("%tr;valign='top'%op;First Name%td;valign='top'%op;Last Name%tr;Andre%td;Fredette","border='0' align='left' cellpadding='2'");

-Dre

Tags: , , ,


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 107

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 109

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 111

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 112
02 Nov 08 Renamed Folders and mod_rewrite

Apache's mod_rewrite is one of the most confusing things to learn but it is an extremely powerful tool. One of the best resources I found was http://www.webforgers.net/mod-rewrite/. Recently I needed to rename a folder on one of the sites I built. The traffic needed to be automatically routed to the new folder to keep all the links to the content valid. To accomplish this, i used a mod rewrite to grab the string after the old folder and move it to the new folder. Below is the content of my .htaccess (located in the root directory with my new folder) file:


RewriteEngine On
RewriteBase /subdir/
RewriteRule ^olddir/?(.*)$ newdir/$1 [R=301,L]

So lets look at it line by line

RewriteEngine on

The RewriteEngine has to be on (obviously).

RewriteBase /subdir/

the RewriteBase is the path to the folder containing your .htaccess and the new folder (in this case, "subdir/" would contain ".htaccess and newdir/"). This is relative to the domain. So if you were working with yourdomain.com/newdir/ the RewriteBase would just be "/".

RewriteRule ^olddir/?(.*)$ newdir/$1 [R=301,L]

The RewriteRule takes anything after the request for your old folder (like index.html) and changes the URL to the new folder. "olddir" is the name of your old folder and "newdir" is the name of your new folder. So a request like:

yourdomain.com/subdir/olddir/index.php?var=value

would become

yourdomain.com/subdir/newdir/index.php?var=value

it doesnt matter what comes after the request for the oldir it will get moved to the newdir. It's pretty obvious that mod_rewrite is a powerful tool but mastering it is a significant challenge. Here's one down though, and plenty more to go.

-Dre

Tags: , ,


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 43


Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 35

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 107

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 109

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 111

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/sites/andrefredette.com/blog/wp-includes/functions.php on line 112
01 Nov 08 Google PageRank

Inspired by Lee's PR checking script (www.refreshinglyblue.com), I modified it to be slightly less obtrusive version that adds the PageRank to the browser title bar (in Safari and Firefox) and in an alert (all browsers).

Simply drag the link below to your favorites bar and then click it whenever you want to get the PageRank for the page you are on.

Get PageRank

Notes:

I have noticed that it sometimes takes as long as 30 seconds for it to work, I assume its because the script is scrubbing an external site so it can take longer on occasion, due to server load. If you would like the script or have any optimization/improvements please let me know!

-Dre

Tags: , , , ,