Support » Fixing WordPress » How can I put blog feeds on my website, w/o use of PHP, Javascript or iFrames

  • How can I put blog feeds on my website.

    I went to and downloaded the
    free php file which turns your RSS feeds into HTML so
    you can put it on your website.

    The script works great, but I have to copy and past this long URL
    into my browswer in order for me to see my updated blog content.

    This is the problem. I want to have other people put my blog
    content on their site and I could use:

    <script language=”JavaScript” src=”″></script>

    or this:

    <iframe src=”″></iframe>

    to put it on my site, but search engines do not spider
    frames and javascript.

    I was told that I could even use this:

    include ‘’;

    But not everyone has a server that uses php.

    How can I have other people put my blog content on their website
    without the use of PHP, iFrames or JavaScript.

    Can anyone help?

Viewing 15 replies - 1 through 15 (of 23 total)
  • Short of them actually copying and pasting it into their page?

    About the only options you’ve left open are a web service to import the rss (but of these I can’t think of one that doesn’t require at least javascript), or a local cgi application that pulls the rss feed into the page. I don’t know of a mechanism that would do what you want in a straight HTML document without some form of scripting or “document in document” handling.

    How would I do this using Perl or Cgi?

    Thanks, but how do I install this so that it looks just like a regular html page?

    I want other people to be able to put my feeds on their website.

    Have a cron job running on your server every, maybe, 15 minutes, that runs a script that takes your RSS feed and writes an HTML version of it. Then give people the location of that HTML file and they can include it on their websites using server-side includes or an iframe or whatever.

    I’m confused. You say you want to put feeds on YOUR website as the description of this question, then ask about putting YOUR feeds on OTHER sites. Which is it?

    Yes, if they have vanilla HTML, they either need to pull it in via frame, javascript, or some kind of IMG insertion tricks. If they have PHP, they can use something like CG-Feedread to aggregate your feed.

    If YOU want feeds on your site, same thing applies. If you can use PHP, something like CG-Feedread will allow you to pull in feeds from other sites and display them on a php page of your site (could be within your WP pages, or a separate page).

    Maybe you need to describe in better detail exactly what your objectives are, since so far it’s been pretty confusing…


    include ‘’;
    require_once ‘/hsphere/local/home/MY_SERVER_USERID/’;
    // Add any desired configuration settings below this line using “CarpConf” and other functions

    Let’s say this is SOMEONE ELSES web page.

    The URL is:

    The content would be up here with maybe
    a graphic or two and
    so on and so on and so on.

    HERE I want others to be able to put my RSS feed
    so that everything can be read, and also picked up
    by the search engines.

    I have found I can do this with php by using these codes:

    The problem I am running into is this?

    Can you put in a php code into a regular webpage that has a
    .html or .htm extention? If so, how do you do this?

    I have 10 people that want to put up my RSS feed on their website
    because I update it daily with excellent content. These people have
    web servers that do not have php. The search engines
    I have found will even spider all 10 of the people’s websites often
    if not daily, giving there webpage a higher ranking due to fresh

    This inturn will give me more traffic to my blog.

    But how to I put this:

    put PHP CODE
    into a .html or .htm extention web page.

    If I can’t put it into a .html or .htm extention webpage.

    I was thinking I could use some sort of CGI code.

    I do not want to use Javascript (Java) or iFrames because
    these are not read by search engine spiders.

    How can I do this?

    ======= RUSTY =============
    What is a cron job. Can you show me an example of one?

    THANK YOU so much in advance.

    Did I do a better job at explaining what I am looking for?

    I found a good URL that explains what I am trying to

    PHP scripts can be embedded in HTML pages.

    So how do I put this code in my html pages:

    PHP embedded in HTML is still PHP, it just makes use of standard HTML to display the content to a browser. In other words, a PHP script and an HTML document with embedded PHP are effectively the same thing, and the web server still must support PHP for this to work.

    If their host supports server-side includes, then they can include a file (CGI, PHP, ASP, whatever) from your site.

    For example, if their site is on a windows server, they can add the following line to their site:

    <!-- #include file="" -->

    I don’t offhand remember the syntax for a server-side include under Apache, but it’d be easy enough to look up.

    Supporting “server-side includes” is something that is up to the web server software itself – no scripting language is needed on their website, just the website where the php file is being called from (in this case, your site).

    Thank you for your quick reply:

    So how do I put this PHP code in my webpage which is an
    .html extention

    and make it show up?

    A “cron job” is a scheduled job on an operating system. For instance, you could write (or find) a script that would run read your RSS feed and write the results to an HTML file. Then schedule it using Cron (or the Windows Task Scheduler if you’re hosted on a Windows server) to run every 15 minutes, or hour, or 6 hours, or whatever.

    Using the technique above (server-side includes) has one drawback – every time their site is viewed, your site will execute the script. This could create an unwanted load on your server, depending on how busy their sites are. If you use the cron job to write an HTML file and they include the HTML file instead of the script, then your server only runs the script according to the cron schedule, which would be a lot easier on your server.

    You don’t need PHP to do an include command. Just find out whether they are using an IIS or Apache server (or whatever server software – there are quite a few web server programs out there) and find out the syntax for a “server-side include” command. The example I gave will work on a Windows server running the IIS web server.

    Here is my server information:
    PHP Version 4.3.11
    System FreeBSD 5.3-RELEASE-p8 FreeBSD 5.3-RELEASE-p8 #0: Fri Apr 8 00:31:46 CDT 2005 i386
    Build Date Apr 8 2005 20:27:28
    Configure Command ‘./configure’ ‘–localstatedir=/var/hsphere/php’ ‘–with-apxs=/hsphere/shared/apache/bin/apxs’ ‘–with-openssl=/usr’ ‘–with-zlib=/usr’ ‘–with-zlib-dir=/usr’ ‘–with-bz2=/usr/local’ ‘–enable-calendar’ ‘–with-jpeg-dir=/usr/local’ ‘–enable-ftp’ ‘–with-gd’ ‘–with-ttf’ ‘–with-freetype-dir=/usr’ ‘–enable-gd-native-ttf’ ‘–with-png-dir=/usr/local’ ‘–with-gettext=/usr/local’ ‘–with-imap=/hsphere/shared’ ‘–with-mysql=/usr/local’ ‘–with-pgsql=/usr/local’ ‘–with-curl=/hsphere/shared’ ‘–with-curlwrappers’ ‘–with-mhash=/usr/local’ ‘–with-iconv=/hsphere/shared’ ‘–enable-sockets’ ‘–with-zip=/usr/local’ ‘–enable-versioning’ ‘–enable-track-vars’ ‘–enable-trans-sid’ ‘–enable-bcmath’ ‘–enable-mbstring’ ‘–disable-debug’
    Server API Apache
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
    PHP API 20020918
    PHP Extension 20020429
    Zend Extension 20021010
    Debug Build no
    Thread Safety disabled
    Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies


Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘How can I put blog feeds on my website, w/o use of PHP, Javascript or iFrames’ is closed to new replies.