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/2005/11/displaying-rss-feeds-in-asp-pages.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/2005/11/displaying-rss-feeds-in-asp-pages.php on line 19

Thursday, November 03, 2005

Displaying RSS feeds in ASP pages using CaRP 

CaRP is a PHP script, so naturally, using it in PHP pages is easier than in non-PHP pages. You may already know that you can use CaRP's JavaScript output option to display feeds in non-PHP pages. You may also know that if you do that, search engines won't be able to see the feed's content. You may know that with SSI, you can often #include a PHP page into another page and have the PHP code executed. But sometimes SSI #includes don't trigger the PHP code in the page that's being imported. Here's a little code snippet that I used today to import the output from a PHP script (running CaRP) into an ASP page when using an SSI #include failed to execute the PHP:

<%
Dim objHttp
set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
objHttp.open "POST", "http://example.com/feed.php", false
objHttp.Send
If objHttp.status = 200 Then
response.write(objHttp.responseText)
End If
set objHttp = nothing
%>
// posted by Antone Roundy @ 3:52 PM

18 Comments:

By Anonymous Josh, at January 06, 2006 11:15 AM  

Hi,

I have been using carp for a few months now... when i originally set it up, i put all my carp feeds on .htm pages. Can you further clarify what you mean when you say that search engines can't read a feed's content when displayed on non-PHP pages? Do you mean that they can't see any of it, and it makes it NOT search engine friendly - or do you mean that SE's can't read the cache where its coming from?

By Blogger Antone Roundy, at January 06, 2006 12:36 PM  

If you run CaRP from a PHP page and have it output the feeds as JavaScript, and then put <script> tags into your .htm pages to display the feed, search engines looking at your page will ignore the script tag--thus the feed will be invisible to the search engine. The search engine still sees the rest of the page just fine--you just don't get any extra SEO benefit from the feed. To get the SEO benefit in a non-PHP page, you need to use the technique described on this page or one of the techniques described in this entry.

By Anonymous Anonymous, at September 11, 2006 9:00 AM  

Using this method mentioned above with the asp page using an .php page, the search engines will still see the RSS content for SEO correct?

By Anonymous Ekfeldt, at November 15, 2006 3:09 PM  

CaRP Setup Assistant
Attempting to open FTP connection...Connection opened
Attempting to set access permissions...Success

Attempting to create cache directories...Success

Attempting to create files in cache directories... Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 140921/140921 is not allowed to access /hsphere/local/home/mtcweb/malmoterrangcyklister.se/carp/manualcache owned by uid/gid 398/398 in /hsphere/local/home/mtcweb/malmoterrangcyklister.se/carp/carpsetupinc.php on line 515 Warning: fopen(/hsphere/local/home/mtcweb/malmoterrangcyklister.se/carp/manualcache/test): failed to open stream: No such file or directory in /hsphere/local/home/mtcweb/malmoterrangcyklister.se/carp/carpsetupinc.php on line 515 Failed. Unable to create files inside your cache directories. If you created these directories manually (for example, with the command "mkdir manualcache", etc.), please delete them and run the installation script again. If the installation script created them, then some unexected error is causing the problem.

Tried to give total permissions.
Even recursiv 0777 permission on the carp-folder located in da root !

http://forums.geckotribe.com/viewtopic.php?t=1117

By Blogger Alton J. Jones, How To Get Good Credit Expert, at April 18, 2007 11:39 PM  

I want to add content from the following link:

http://www.aiim.org/rss/latest.asp

Which method should I use with the CaRP application to get this content to display on a html page?

By Anonymous Anonymous, at June 13, 2007 1:30 AM  

Is there a carp solution for .aspx files just as there is for .asp files?

By Blogger John, at July 18, 2007 11:06 PM  

Yes I to can't figure out how to display http://testerver.testS.net/rss/cj/testme.asp?id=2345456

It just serves up a blank page? What would I put in the PHP file that calls this line to correct the problem??


Thanks

John

By Blogger azgirl, at July 12, 2008 2:55 PM  

The server my site is on does not support PHP, only ASP. Will CaRP work?

I want to put a Google News feed on my site.

By Anonymous Anonymous, at October 09, 2008 3:41 AM  

kral oyun
oyunlar
kiz oyunlari
kral oyun
kral oyun

thanks

By Anonymous dizi izle, at October 29, 2008 2:55 AM  

Using this method mentioned above with the asp page using an .php page, the search engines will still see the RSS content for SEO correct?

By Anonymous oyun, at November 03, 2008 9:46 AM  

thanks very good

By Anonymous savaş oyunları, at December 23, 2008 6:44 PM  

teşekkürler (thanks for turkish)

By Anonymous Anonymous, at June 17, 2009 12:38 PM  

have been using carp for a few months now... when i originally set it up, i put all my carp feeds on .htm pages. Can you further clarify oyUn
oyunlar
kral oyun what you mean when you say that search engines can't read a feed's content when displayed on non-PHP pages? Do you mean that they can't see any of it, and it makes it NOT search engine friendly - or do you mean that SE's can't read the cache where its coming from?

By Anonymous Anonymous, at March 29, 2010 11:17 AM  

thats good

By Blogger Fix, at April 14, 2010 5:30 PM  

I m really very en yeni oyunlar useful to follow a long-time see this as a blog here.Thank you for your valuable information.

By Anonymous knight online, at April 15, 2010 2:41 PM  

Thank you for this post..

By Anonymous metin2 yang, at May 11, 2010 8:02 PM  

made by ksharp

Post a Comment

http://carp.docs.geckotribe.com/tips/2005/11/displaying-rss-feeds-in-asp-pages.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/2005/11/displaying-rss-feeds-in-asp-pages.php on line 172

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/2005/11/displaying-rss-feeds-in-asp-pages.php on line 172
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/2005/11/displaying-rss-feeds-in-asp-pages.php on line 179

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/2005/11/displaying-rss-feeds-in-asp-pages.php on line 179