I need a way to make this - Cycle Site Feed Generator
Post the data entered into a database and not a txt file like it does at the minute, here's all the code i use......
Keyword Input....
/somethin.php.....
Any ideas? :bigear:
Post the data entered into a database and not a txt file like it does at the minute, here's all the code i use......
Keyword Input....
HTML:
<html>
<head>
<title>Cycle Site Feed Generator</title>
</head>
<body>
Enter your desired keywords below (one per line)...
<br>
<form name="keywordform" action="http://www.artofbam.com/priv/somethin.php" method="POST">
<textarea rows="20" cols="20" name="keywords">
</textarea>
<br>
<input type="submit" value="Submit Keywords" >
</body>
</html>
PHP:
<?
if($handle = fopen('keywords.txt', 'w')){
fwrite($handle, $_POST['keywords']);
fclose($handle);
}
$filename = 'keywords.txt';
$handle = fopen($filename, "rb");
$keywords = fread($handle, filesize($filename));
fclose($handle);
//These use + to seperate keywords....
$keywords = str_replace(" ", "+", $keywords);
$keywords = explode("\n", $keywords);
foreach($keywords as $keyword)
{
echo 'http://blogsearch.google.com/blogsearch_feeds?hl=en&q=' . $keyword . '&ie=utf-8&num=100&output=rss<br>';
echo 'http://www.blogpulse.com/rss?query=%22' . $keyword . '%22&sort=date&operator=phrase<br>';
echo 'http://search.live.com/feeds/results.aspx?q=' . $keyword . '&go=Search+Feeds&form=QBFR<br>';
echo 'http://feeds.technorati.com/search/' . $keyword . '?authority=a4&language=en<br>';
}
?>