1. Home
  2. Computing & Technology
  3. Python

RSSReader.php
PHP for an RSS Reader

From , former About.com Guide

<?php
$results = shell_exec ("./RSSReader.py \"" . $_POST["selection"] . "\"") ;
#$results = shell_exec ("./RSSReader.py \"Der Spiegel International\"") ;

print "
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">

<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<title>About.com's Python-Powered RSS Reader</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"./base.css\" />
</head>
<body bgcolor = \"lightblue\">
<font color = \"black\">
<h4>
";

print $results;
print "</h4> </body> </html>";
?>

Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.