Warning: include_once(/www/templates/gt/parts/blogs/carptips/first.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2004_10_01_archive.php on line 19

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/first.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2004_10_01_archive.php on line 19

Friday, October 15, 2004

Using CaRP for Search Engine Optimization 

You may have noticed search engine optimizers talking a lot about RSS lately. Briefly, before getting into using CaRP for SEO, the idea is that adding newsfeeds to your pages gives your website a steady stream of fresh, relevant content. Even if you never update the rest of the page, the search engine sees a page that gets updated often.

So how can you best use CaRP for SEO? Here are a few tips to get you started:

1) Be sure to embed CaRP's output directly in your page as HTML rather than using JavaScript output and just putting the script tag into your page. Why? Because search engines don't see the JavaScript output, so if you do it that way, the feed is invisible to them.

2) It probably goes without saying, but you need to find a relevant newsfeed. If you're trying to optimize your page for the words "fly fishing", a newsfeed about the latest in computer isn't going to do you much good! Finding feeds on some topics can be difficult. Try browsing or searching at Chordata and other newsfeed directories, or even just searching Google. For example, to look for a fly fishing feed, search for 'RSS "fly fishing"'.

3) Use semantic markup. If the feed's title has your keywords in it, do this in your PHP code:

CarpConf('bctitle','<h2>');
CarpConf('actitle','</h2>');

You may want to use a little CSS to alter the presentation of the contents of the H2 tag, but that's a topic for another time. If the feed's headlines often contain your keywords, you might do this:

CarpConf('bilink','<h3>');
CarpConf('ailink','</h3>');

Those header tags tell search engines that the words between them are important.

4) Don't bleed PageRank through the links. Take a look at the JavaScript linking style on this post to see how you can make links that don't look like outbound links to search engines.
// posted by Antone Roundy @ 4:11 PM
(2) comments
http://carp.docs.geckotribe.com/tips/2004/10/using-carp-for-search-engine.php

Saturday, October 09, 2004

Help! I can't delete the cache directories! 

If you've ever tried deleting CaRP, you've probably noticed that without root access to your server, getting rid of the cache directories can be a little tricky. The problem is that the cache directories and their contents were created by the web server, not by you, so you don't have the necessary access priviledges to delete them. Fortunately, there's an easy solution--easy once you know what it is!

The first thing you need to do is delete all the cache files. To do that, create a PHP file like this, upload it to your server, and load it in your web browser:

<?php
require_once "/path/to/carp.php";
CarpClearCache(0);
CarpClearCache(1);
CarpClearCache(2);
?>

Once that's done, you'll be able to delete the cache folders even though you don't own them. Why? Because you own the directory that contains them.

UPDATE: Here's a script that will both empty and delete the cache folders, as well as displaying error messages if something goes wrong:

<?php
require_once '/path/to/carp.php';
CarpConf('phperrors',E_ALL);
CarpClearCache(0);
CarpClearCache(1);
CarpClearCache(2);
rmdir(CarpAggregatePath());
rmdir(CarpCachePath());
rmdir(CarpAutoCachePath();
?>
// posted by Antone Roundy @ 9:12 AM
(16) comments
http://carp.docs.geckotribe.com/tips/2004/10/help-i-cant-delete-cache-directories.php

This page is powered by Blogger. Isn't yours?


Warning: include_once(/www/templates/gt/parts/blogs/carptips/second.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2004_10_01_archive.php on line 86

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/second.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2004_10_01_archive.php on line 86
ARCHIVES

Warning: include_once(/www/templates/gt/parts/blogs/carptips/third.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2004_10_01_archive.php on line 93

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/third.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2004_10_01_archive.php on line 93