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 :
- In my /download/plugins dir, I create a file with the same name as the plugin : wp_ozh_ip2nation.php
- <?php
- $file = "/home/physical/path/to/wp-content/plugins/wp_ozh_ip2nation.php";
- highlight_file($file);
- ?>
- Then the .txt version :
- 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: http://ozh.in/2d
This entry "Keeping my download/plugins directory synch’ed" was posted on 20/09/2004 at 11:43 pm and is tagged with Code, Linux, PHP, Tips, WordPress
Watch this discussion : Comments RSS 2.0.