<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: MySpace bulletins to RSS</title>
	<atom:link href="http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/</link>
	<description>Web Programming and Design by Aaron Saray</description>
	<pubDate>Fri, 05 Dec 2008 12:53:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Aaron</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-807</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Sat, 15 Nov 2008 01:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-807</guid>
		<description>@Scott Crawford: 1: yes.  2: try just printing $xml-&gt;asXML().  Instead of running it as cron, you should be able to extract your cron command and run it on the command line.
Probably something like:

php my_space_script.php</description>
		<content:encoded><![CDATA[<p>@Scott Crawford: 1: yes.  2: try just printing $xml->asXML().  Instead of running it as cron, you should be able to extract your cron command and run it on the command line.<br />
Probably something like:</p>
<p>php my_space_script.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Crawford</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-805</link>
		<dc:creator>Scott Crawford</dc:creator>
		<pubDate>Fri, 14 Nov 2008 17:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-805</guid>
		<description>I'm trying to free myself from the shackles of teh MySpace bulletins, and thankfully, a lot of my friends are either moving to Facebook or just giving up on social networks entirely, but in the meantime, this could be a super-helpful script, and thanks for investing the time you have into it.

Onto the nitty gritty:

1) Should I drop that ‘unlink()’ right after the fclose($fp); statement?

2) XML file has its original attributes, but no news items in it yet. Being that I'm doing this with extremely limited *nix/terminal/command line knowledge, how would a brother go about echoing the script output? I had the cron results going to my email, but when the errors stopped, so did those emails.

Thanks again for your time and patience through all of this.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to free myself from the shackles of teh MySpace bulletins, and thankfully, a lot of my friends are either moving to Facebook or just giving up on social networks entirely, but in the meantime, this could be a super-helpful script, and thanks for investing the time you have into it.</p>
<p>Onto the nitty gritty:</p>
<p>1) Should I drop that ‘unlink()’ right after the fclose($fp); statement?</p>
<p>2) XML file has its original attributes, but no news items in it yet. Being that I&#8217;m doing this with extremely limited *nix/terminal/command line knowledge, how would a brother go about echoing the script output? I had the cron results going to my email, but when the errors stopped, so did those emails.</p>
<p>Thanks again for your time and patience through all of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-804</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 14 Nov 2008 16:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-804</guid>
		<description>@Scott Crawford: Well its been a while since I've actually revisited this script- and I don't even use myspace anymore! :)
1) the cookie jar one.  Since you don't have a working /tmp directory that you can access I'm sure, you may need to add an 'unlink()' statement at the end of the script to delete these files (all they are is the local 'cache' to accept cookies as you go from page to page.).
2) the xml file not updating: hrm.  Does it actually have content from the first run, but isn't filling with new? or is there no content what so ever?  You might want to try echo'ing out the contents to the console before you write the file to make sure it even has anything.</description>
		<content:encoded><![CDATA[<p>@Scott Crawford: Well its been a while since I&#8217;ve actually revisited this script- and I don&#8217;t even use myspace anymore! <img src='http://www.102degrees.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
1) the cookie jar one.  Since you don&#8217;t have a working /tmp directory that you can access I&#8217;m sure, you may need to add an &#8216;unlink()&#8217; statement at the end of the script to delete these files (all they are is the local &#8216;cache&#8217; to accept cookies as you go from page to page.).<br />
2) the xml file not updating: hrm.  Does it actually have content from the first run, but isn&#8217;t filling with new? or is there no content what so ever?  You might want to try echo&#8217;ing out the contents to the console before you write the file to make sure it even has anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Crawford</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-803</link>
		<dc:creator>Scott Crawford</dc:creator>
		<pubDate>Fri, 14 Nov 2008 15:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-803</guid>
		<description>Aaron,

Here's where I'm at:

The good: the "touch" command worked and created the bulletins.xml file. The perms are set to 664, so that's all good. Not getting the script errors I was anymore, so we're that much further along, finally.

The bad: the bulletins.xml file doesn't appear to be updating. No news items yet.

The ugly: the script is generating files called "cookiejar-(string of numbers here)" in my home directory every time the cron job runs, which makes said directory a bit of a mess.

Thoughts?

Thanks again for your help,
-S</description>
		<content:encoded><![CDATA[<p>Aaron,</p>
<p>Here&#8217;s where I&#8217;m at:</p>
<p>The good: the &#8220;touch&#8221; command worked and created the bulletins.xml file. The perms are set to 664, so that&#8217;s all good. Not getting the script errors I was anymore, so we&#8217;re that much further along, finally.</p>
<p>The bad: the bulletins.xml file doesn&#8217;t appear to be updating. No news items yet.</p>
<p>The ugly: the script is generating files called &#8220;cookiejar-(string of numbers here)&#8221; in my home directory every time the cron job runs, which makes said directory a bit of a mess.</p>
<p>Thoughts?</p>
<p>Thanks again for your help,<br />
-S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-796</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Thu, 13 Nov 2008 01:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-796</guid>
		<description>@Scott Crawford: Try 664 after 'touch bulletins.xml'  Should give the proper permissions...</description>
		<content:encoded><![CDATA[<p>@Scott Crawford: Try 664 after &#8216;touch bulletins.xml&#8217;  Should give the proper permissions&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Crawford</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-794</link>
		<dc:creator>Scott Crawford</dc:creator>
		<pubDate>Thu, 13 Nov 2008 00:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-794</guid>
		<description>Aaron, 

I've tried posting the path a number of different ways (and making sure that the paths match in my cron job and my script, of course), but still no luck. 

I've tried /home/user/path/to/file, /home/.servername/user/path/to/file, and I even tried the shortened /path/to/file for the heck of it (though only in the script, as the cron job needs the full path).

If I were to wager a guess, there's a permissions issue somewhere that's blocking the script from generating /myspace/bulletins.xml properly. I've tried CHMODing to 500, 550, and 551 so far, with no change in error message. Am I in the right ballpark permissions-wise? 

A final possibility is, of course, that something's screwy server-side with simpleXML, but I haven't heard anything that bears that out yet.

Frustrating, because I feel like we're close, and like it's something totally dumb that's in the way here.</description>
		<content:encoded><![CDATA[<p>Aaron, </p>
<p>I&#8217;ve tried posting the path a number of different ways (and making sure that the paths match in my cron job and my script, of course), but still no luck. </p>
<p>I&#8217;ve tried /home/user/path/to/file, /home/.servername/user/path/to/file, and I even tried the shortened /path/to/file for the heck of it (though only in the script, as the cron job needs the full path).</p>
<p>If I were to wager a guess, there&#8217;s a permissions issue somewhere that&#8217;s blocking the script from generating /myspace/bulletins.xml properly. I&#8217;ve tried CHMODing to 500, 550, and 551 so far, with no change in error message. Am I in the right ballpark permissions-wise? </p>
<p>A final possibility is, of course, that something&#8217;s screwy server-side with simpleXML, but I haven&#8217;t heard anything that bears that out yet.</p>
<p>Frustrating, because I feel like we&#8217;re close, and like it&#8217;s something totally dumb that&#8217;s in the way here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-793</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 07 Nov 2008 22:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-793</guid>
		<description>@Scott Crawford: Well, the 404 is based on whatever your PHP configuration says its base php manual URL should be.  Generally, those HTML errors are not really worthwhile unless you're using something like xdebug.  AT any rate, when seeing those, you can either configure your php.ini help URL - or just put php.net/fopen into your address bar.

As for the error that you guys are experiencing, I think it has to do with an incorrect path or a type-o.  If you see, his error message gives it away.  
The real path is /home.magi/tr/tr.com.....  where as his fopen path is /myspace/bulletins.  SOO - what you need to do is make sure you get the full file system path in there... make sure the fopen starts with the full path:

fopen(/home/.magi/tr/tr.com/myspace/bulletins.xml) would do the trick</description>
		<content:encoded><![CDATA[<p>@Scott Crawford: Well, the 404 is based on whatever your PHP configuration says its base php manual URL should be.  Generally, those HTML errors are not really worthwhile unless you&#8217;re using something like xdebug.  AT any rate, when seeing those, you can either configure your php.ini help URL - or just put php.net/fopen into your address bar.</p>
<p>As for the error that you guys are experiencing, I think it has to do with an incorrect path or a type-o.  If you see, his error message gives it away.<br />
The real path is /home.magi/tr/tr.com&#8230;..  where as his fopen path is /myspace/bulletins.  SOO - what you need to do is make sure you get the full file system path in there&#8230; make sure the fopen starts with the full path:</p>
<p>fopen(/home/.magi/tr/tr.com/myspace/bulletins.xml) would do the trick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Crawford</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-792</link>
		<dc:creator>Scott Crawford</dc:creator>
		<pubDate>Fri, 07 Nov 2008 04:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-792</guid>
		<description>Aaron,

Getting the same error as wgato, and as I believe he's a Dreamhost customer as I am because of the path structure, if I get a definitive answer on things, I'll post it here so it can potentially help a few people out.

Curiously, though, I'm also getting a 404 error on the linked "function.fopen" in the above error.

Thoughts on this, and also on the minimum amount of permissions I should be CHMODing the file itself to would be greatly appreciated.

-S</description>
		<content:encoded><![CDATA[<p>Aaron,</p>
<p>Getting the same error as wgato, and as I believe he&#8217;s a Dreamhost customer as I am because of the path structure, if I get a definitive answer on things, I&#8217;ll post it here so it can potentially help a few people out.</p>
<p>Curiously, though, I&#8217;m also getting a 404 error on the linked &#8220;function.fopen&#8221; in the above error.</p>
<p>Thoughts on this, and also on the minimum amount of permissions I should be CHMODing the file itself to would be greatly appreciated.</p>
<p>-S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-376</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 12 May 2008 02:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-376</guid>
		<description>@wgato: It could be that the script can't recognize the location of '/myspace/bulletins.xml' - especailly if you're running it out of your tr.com folder.

I would try replacing that fopen command with '/tr.com/myspace/bulletins.xml' or even '/home/.magi/tr/tr.com/myspace/bulletins.xml

good luck!</description>
		<content:encoded><![CDATA[<p>@wgato: It could be that the script can&#8217;t recognize the location of &#8216;/myspace/bulletins.xml&#8217; - especailly if you&#8217;re running it out of your tr.com folder.</p>
<p>I would try replacing that fopen command with &#8216;/tr.com/myspace/bulletins.xml&#8217; or even &#8216;/home/.magi/tr/tr.com/myspace/bulletins.xml</p>
<p>good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wgato</title>
		<link>http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-375</link>
		<dc:creator>wgato</dc:creator>
		<pubDate>Mon, 12 May 2008 01:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.102degrees.com/blog/2007/09/27/myspace-bulletins-to-rss/#comment-375</guid>
		<description>Hi-

I'm struggling a bit trying to get this working.  I confirm that my server is using PHP version 5, uploaded the script but I get the error:


Warning: fopen(/myspace/bulletins.xml) [function.fopen]: failed to open stream: No such file or directory in /home/.magi/tr/tr.com/myspace/msrss.php on line 115

Warning: fputs(): supplied argument is not a valid stream resource in /home/.magi/tr/tr.com/myspace/msrss.php on line 116

Warning: fclose(): supplied argument is not a valid stream resource in /home/.magi/tr/tr.com/myspace/msrss.php on line 117

I tried creating a /myspace folder but no luck.  Any suggestions?

thanks!</description>
		<content:encoded><![CDATA[<p>Hi-</p>
<p>I&#8217;m struggling a bit trying to get this working.  I confirm that my server is using PHP version 5, uploaded the script but I get the error:</p>
<p>Warning: fopen(/myspace/bulletins.xml) [function.fopen]: failed to open stream: No such file or directory in /home/.magi/tr/tr.com/myspace/msrss.php on line 115</p>
<p>Warning: fputs(): supplied argument is not a valid stream resource in /home/.magi/tr/tr.com/myspace/msrss.php on line 116</p>
<p>Warning: fclose(): supplied argument is not a valid stream resource in /home/.magi/tr/tr.com/myspace/msrss.php on line 117</p>
<p>I tried creating a /myspace folder but no luck.  Any suggestions?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.441 seconds -->
