Integrating a news feed on your site
For this example we will use a version of the Java boutique news feed , to see the original code click here and to see the original example click here . As you can see this is a good example but for web site developers it isnt much good because you usually have to integrate the news into your site somehow .
We are going to adapt the original script and then include it onto the page here .
To get round this we have created another script called javabout2.txt now copy this and rename it to javabout2.php . We will now use a an PHP include of an SSI file like this where we want to use the news feed .
<?
include("javabout2.php");
?>
and here is this in action
Warning: include(javabout2.php) [function.include]: failed to open stream: No such file or directory in /home/beginne/public_html/integratenews.php on line 184
Warning: include(javabout2.php) [function.include]: failed to open stream: No such file or directory in /home/beginne/public_html/integratenews.php on line 184
Warning: include() [function.include]: Failed opening 'javabout2.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/beginne/public_html/integratenews.php on line 184
this is a simple example using a simple table , you could easily modify it by adding borders , background colors etc but I think you will agree this gives you the general idea . Remember and change the actual script to reflect your changes as this is where all the work takes place.
|