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_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/2005_11_01_archive.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
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_01_archive.php on line 47

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_01_archive.php on line 47
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_01_archive.php on line 54

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_01_archive.php on line 54