Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

Programmershelp.co.uk RSS feeds

 

We have a collection of RSS feeds for your site . The last 5 snippets will be displayed

ASP.net
Assembly
Blitzbasic
C
C Sharp
C++
CSS
Darkbasic
GameBoy
HTML
Java
Javascript
JSP
Pascal
PHP
VB
VB.net
VBScript
Visual Basic


 

 

You can use code like the following to display a feed

<?php
$code = $HTTP_GET_VARS['e'];
//if($code == "");
// $code = php;
$xmlfile = fopen("http://www.programmershelp.co.uk/rss2.php?e=$code", "r");
if(!$xmlfile)die("cannot open the xml file");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
echo "<table border='1'>";
for($i=1 ; $i<=$count-1 ;$i++)
{
ereg("<title>(.*)</title>",$filechunks[$i], $title);
ereg("<link>(.*)</link>",$filechunks[$i], $links);
ereg("<description>(.*)</description",$filechunks[$i],$desc);
echo "<tr><td>";
echo "<a target='_new' href ='$links[1]'\>$title[1]</a><br>";
echo $desc[1];
echo "</td></tr>";
}
echo "</table>";
?>

If you call the above example testrss.php then testrss.php?e=vb will display the Visual Basic category or you can harcode the links above individually.


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Useful disk information(VBScript)
Do While loop(PHP)
Drawing example(ASP.net)
no right click function(Javascript)
Find out part of a date(ASP)
Write to a text file and display the contents(Powershell)
Cascade windows(VB)
Create a share(VB)




Copyright © 2004 by programmershelp.co.uk