Tag Archives: server request

Recommended Server-request

Quick Twitter DIY – How to Make a ReTweetThis button for your WordPress Blog from Scratch!

Well, I’ve been messing with Twitter today, I even made a new URL shortening called U2S.Me in 2 hours, here’s how to make ReTweet This! button for your WordPress blog froms scratch:

For those of you who want to create your own “ReTweet This!” button using your favorite URL shortener, (mine is U2S.Me, which I made from scratch) you can easily implement a CURL into your single.php to make this happen on the fly.

Here’s how to do it, add the following code in your single.php (This example uses U2S.Me to shorten URLs, you can

Click Here to Read Full Article

Leave a comment

PHP DIY – How to Add Caching to ANY website!

In my recent ventures, I have resorted to finding great PHP code to cache my website.

Even if you are not using WordPress, you can still make a simple PHP caching mechanism without the use of WordPress Super Cache.  (Well, all WordPress Super Cache is a PHP cache with user-friendly menus.)

Here’s how to add caching to your website:

Copy and paste the following code and save as “cache.php” in your website root directory:

<?php // Settings $cachedir = ‘cache/’; // Directory to cache files in (keep outside web root) $cachetime = 600

Click Here to Read Full Article

3 Comments