<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki2.sitebuilt.net/index.php?action=history&amp;feed=atom&amp;title=Parsemeta.php</id>
	<title>Parsemeta.php - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2.sitebuilt.net/index.php?action=history&amp;feed=atom&amp;title=Parsemeta.php"/>
	<link rel="alternate" type="text/html" href="https://wiki2.sitebuilt.net/index.php?title=Parsemeta.php&amp;action=history"/>
	<updated>2026-05-06T14:46:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki2.sitebuilt.net/index.php?title=Parsemeta.php&amp;diff=2148&amp;oldid=prev</id>
		<title>Tim at 22:04, 3 December 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki2.sitebuilt.net/index.php?title=Parsemeta.php&amp;diff=2148&amp;oldid=prev"/>
		<updated>2008-12-03T22:04:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/php -w&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
//$fname = $argv[1];//still working to make this run from command line args&lt;br /&gt;
$fname = '2ism/v/tfa.txt';&lt;br /&gt;
$lines = file($fname)or die(&amp;quot;yo can't open file \n&amp;quot;);&lt;br /&gt;
$outFile = &amp;quot;2ism/v/tfaWikiv.txt&amp;quot;;&lt;br /&gt;
$fh = fopen($outFile, 'w') or die(&amp;quot;can't open file&amp;quot;);&lt;br /&gt;
// Loop through $lines array, lookup meta description tag for def of each $wrd.&lt;br /&gt;
foreach ($lines as $line_num =&amp;gt; $wrd) {&lt;br /&gt;
	$tags = get_meta_tags('http://www.answers.com/'.$wrd);&lt;br /&gt;
	$thedef = $tags['description'].&amp;quot;\n&amp;quot;;//pick out the description tag and keep the string&lt;br /&gt;
	$thewords = explode(&amp;quot; &amp;quot;, $thedef);//explode it &lt;br /&gt;
	$thewords[0]=&amp;quot;;&amp;quot;.$thewords[0].&amp;quot;:&amp;quot;;//put the first word in wiki format&lt;br /&gt;
	$wikidef = implode(&amp;quot; &amp;quot;,$thewords).&amp;quot;\n&amp;quot;;//put the string back together&lt;br /&gt;
	fwrite($fh, $wikidef);&lt;br /&gt;
	echo $wikidef;&lt;br /&gt;
}&lt;br /&gt;
fclose($fh);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tim</name></author>
	</entry>
</feed>