In: , , , ,
On: 2004 / 09 / 20
Shorter URL for this post:

Just a tip I'm posting here, more as a reminder for myself when I publish my next plugin, maybe it can be useful to a few :

My actual wordpress plugins directory (wp-content/plugins) contains plugins I'm working on, and plugins I've published. Here is my way of creating in my download directory (download/plugins) a synched unprocessed .php highlighted copy of a plugin, as well as a .txt version. For example, my download directory contains a live non-working replica of my ip2nation plugin :

  1. In my /download/plugins dir, I create a file with the same name as the plugin : wp_ozh_ip2nation.php
    1. <?php
    2. $file = "/home/physical/path/to/wp-content/plugins/wp_ozh_ip2nation.php";
    3. highlight_file($file);
    4. ?>
  2. Then the .txt version :
    1. ln -s /home/path/to/wp-content/plugins/wp_ozh_ip2nation.php wp_ozh_ip2nation.txt

This way, changes I make to the real plugin are automatically duplicated to the non-working version anyone can see and download. Another way would be of course to use some file to show source like for example at Huddled Masses, but I wanted something more minimalistic (beware of his source.php, it's not compatible with most PHP installation and needs a few rewrite)

Shorter URL

Want to share or tweet this post? Please use this short URL:


This entry "Keeping my download/plugins directory synch’ed" was posted on 20/09/2004 at 11:43 pm and is tagged with , , , ,
Watch this discussion : Comments RSS 2.0.

No Comment yet

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.

Read more ?