Dec 24 2005 Streaming Music From Your PC To Your PSP
PSP Guide | How To
submit  
Streaming Music From Your PC To Your PSP for Sony PSP


TheMarsVolta
PM PSPage  
Decorah, Iowa, USA
Go on! You know you want it
Read reviews & Check out new games
+Reviews
READ
+Goods
DISCUSS
Joytron PSP Slim & Lite System Skin Case for Sony PSP
Joytron PSP Sli...
Pelican for Sony PSP All-in-One Case for Sony PSP
Pelican for Son...
PSP IVO Sound Mini Theater System for Sony PSP
PSP IVO Sound M...
DiGi iNVaDeRS for Sony PSP
DiGi iNVaDeRS
With the added support for RSS feeds, it only makes sense to take advantage of this feature. The best way, in my opinion, is to make your music library on your computer available to your PSP. This can be accomplished in a short amount of time.

This is just one way to do it. There are other servers that you use. I've tried Apache and didn't like it very much. I've also been told to use Windows IIS, but I am using Windows XP Home Edition, so that option isn't available to me.

This is a walkthrough of one way to make your music library available to your PSP, wirelessly. It is in baby steps, so it makes it a bit easier for people who have had trouble with this kind of thing.

What You'll Need
• A wireless network
Abyss Web Server
PHP5
PSP RSS Feeder

Setting Up The Feeder

Once you download the PSP RSS Feeder, extract the contents to the folder with all of your music. The feeder will allow you to select which song to listen to. For organization purposes, I used MP3Organizer to put my music into folders based on "Artist". You don't have to do this, but I find it to be much easier to navigate and find what I want.

That is all you need to do with the PSP RSS Feeder.

Installing PHP5

After you download PHP5, run the installer. Once installation has complete, move onto setting up the server. Remember the install directory that you use because you'll need it later. By default, it is C:PHP.

Installing and Configuring The Web Server

Download the free version of Abyss (X1). During the installation of the server, you'll be promted to make a username and password for access to the console. Use something that you can easily remember. Go to the configuration page in your web browser (localhost:9999 by default).

Image

Click the "Configure" button next to "Default Host On Port 80" in the hosts table. Then select "General" and change the Documents Path to the folder with your music in it. Click OK.

Image Image

When you are back at the Edit page, click on Index Files. Add "index.php" to the list (leaving out the quotes). Click OK.

Image

Then click on "Scripting Parameters". Make sure that "Enable Script Execution" is checked. On the "Interpreters" table, click "Add". For the "Interpreter" field, click "Browse" and find the file "php-cgi.exe". It is in the folder that you installed PHP5 ("C:PHPphp-cgi.exe", by default). Change the "Type" drop down menu to "PHP Style". Make sure that "Use the associated extensions to automatically update the Script Paths" is checked. At the "Associated Extensions" table, add "php" to the list (again, leaving out the quotes).

On the same page is a table called "Custom Environmental Variables". Click Add and enter these values:

Name: REDIRECT_STATUS
Value: 200

Click OK to save the changes.

Image

You'll also have to click "Restart' so the server can restart and the changes will be enabled.

Image

Testing It Out

To test it out, just enter "localhost" into a browser window. You should see a blue and purple page similar to the one shown below.

Image

If you didn't put your MP3s into folders, your page will look different, but it's not a big deal.

Using It With Your PSP

If you are in the same network as the computer that is running the server, all you need to do to access your RSS Feed is enter your local IP address into the PSP Web Browser. If you don't know your local IP address, do this:

Go to "Start > Run > CMD > ipconfig" and hit enter. It will say IP Address and then some numbers. In my case, it's 192.168.x.xx. It depends on what kind of router/access point you are using.

If you want to access your music library from outside of the network (over the internet), then you need to either use your IP that is provided by your ISP, or use a DNS service, such as no-ip.org, to bind a domain (yourdomain.no-ip.org) to your IP address. They have several subdomains to choose from, and the service is free.

Comments

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16
03/02/06 DCLXVI
Hi folks, DCLXVI here again... (maker of PSP RSS Feeder)
I keep getting email about my script not working on Abyss...
I don't know who wrote this article but in my opinion Abyss is not a real webserver...

Try using Apache or ISS!

And to the publisher, please straiten this out or remove your article...

Thanx
+
 

03/02/06 DCLXVI
Here's how to install IIS on xp home edition...

link
+
 

03/02/06 DCLXVI
Also, the story about mp3's hassitating on IIS is not true, just turn off the wifi power save function of your PSP.
+
 

03/02/06 halfstar
Again, follow DCLXVI's advice with using IIS if you can.

I personally did not like IIS - it doesn't work with other scripts I have.

The hiccup is somethning I ran into into on both IIS and abyss. I definately have the powersave off - maybe its my server; it's only for a brief second when it starts the feed.

There is almost no information about this error on the web - which occurs on both Apache on Windows and Abyss. By comparing your .php script with others that do similar things I noticed the discrepency and found a fix. Just tryin to help the community .

btw - northwst - remove the print() command altogether - just replace print( "<?xml..." ); with $temp_data = "<?xml..."; and the header tags as I mentioned in my post


edited: Mar 02 2006 
+
 

03/02/06 halfstar
<duplicate removed>

edited: Mar 02 2006 
+
 

03/02/06 northwst
ok Thank you both.

I made the correction, sorry brain farted on the code

here is the correct format and THIS DOES WORK for everyone that has tried this and can't get it to work, at least for me.

$temp_buffer = "<?xml version="1.0" encoding="UTF-8" ?>n<rss version="2.0">n <channel>n". $channel_title . $channel_image . " <copyright>© 2005 DCLXVI</copyright>n".$channel_list." </channel>n</rss>";

header('Content-Disposition: inline; filename=temp_filename.xml');
header('Content-Type: application/xml');
header('Content-Length: '.strlen($temp_buffer));
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
echo $temp_buffer;

remember to replace the "print ( )" function. just copy and paste the code above

and again A BIG THANK YOU to everyone that has contributed to this feeder and to getting it working.


edited: Mar 02 2006 
+
 

03/03/06 DCLXVI
This is not really the way, the headers are in the wrong place of the script now.. when my script outputs an errormessage e.g bad filenaming it writes it before these headers wich will result in a php error... that's why I already send the disposition and application header on line 258 in the script...

but this pointed out the way my disposition header was set to 'attachment', and this one is set to 'inline'. that's what probably not makes it work on abyss...!!

I've uploaded a new version (1.0m) that just might work with abyss. I don't have abyss running, I couldn't test, so please forgive me if it doesn't work (yet) link

Still works fine on IIS and Apache this way...

many thanx to halfstar and northwst!


edited: Mar 03 2006 
+
 

03/05/06 Sabrafreak
I am having some trouble changing the script, It says when I try to access the files from my psp that there is an error in the index.php line 656. Can anyone please help me, I really wnat to get this to work!
+
 

03/07/06 northwst
Thank you for your attention to the use of abyss webserver trouble using this script. Unfortunately the new script you have made does not work with it. I am currently using the fix that halfstar submitted. I have not had any errors, yet but I will let you know if I do. Did I happen to say thank you for this very powerful script.


As far as sabrefreak's problem: are you using version L or M, please remember when you patch the code you MUST totally replace the part where it says print on the line 656 all the way to where it says }else{ please refer to the previous posts about how to fix this.
+
 

03/08/06 Sabrafreak
Hey northwst, I am still having treoubel with my code, it keeps coming up with a PArse error either enexpected'?' or unexpected T_DNUMBER. Is there anyway you could email me your code so I can just save it into my file. My email is Sabrafreak AT NOSPAM yahoo.com. Please, please help em, lol, I have been trying to ge tthis to work for weeks
+
 

03/11/06 vahday
Hey guys,

I was having the same problem as Sabrafreak and others with the parse error on line 656. I changed part of northwst's code in the "index.php" file from

$temp_buffer = "<?xml version="1.0" encoding="UTF-8" ?>n<rss version="2.0">n <channel>n". $channel_title . $channel_image . " <copyright>© 2005 DCLXVI</copyright>n".$channel_list." </channel>n</rss>";

to

$temp_buffer = '<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
'. $channel_title . $channel_image .' <copyright>© 2005 DCLXVI</copyright>
'.$channel_list.' </channel></rss>';

and it works fine using the Abyss server. I basically just replaced the double quotes ( " ) with single quotes( ' ) in some spots. Just make sure that you edit line 39 as well to reference your path. My line 39 looks like this

$thebase_url = "http://192.168.15.101/";

I could not get it to work without editing line 39. I found out that it was making the url reference incorrectly. Looked like this in the .xml file it generated

<enclosure url="http://192.168.15.101/filename.mp3" type="audio/mp3" />

when it should have looked like this

<enclosure url="http://192.168.15.101/filename.mp3" type="audio/mp3" />

Hope it works for you as well. By the way, all the stuff I have found on this site is awesome. Keep up the good work.
+
 

03/11/06 Alucard11
so...how should that WHOLE section look like vahday??..post it up
+
 
Recent Reviews: Lumines 2

03/11/06 vahday
Alucard11,

To start, follow the guide above. The only additional step you need to do is editing the "index.php" file. Go to line 656 where it currently looks like this

print "<?xml version="1.0" encoding="UTF-8" ?>n<rss version="2.0">n <channel>n". $channel_title . $channel_image . " <copyright>© 2005 DCLXVI</copyright>n".$channel_list." </channel>n</rss>";

Now, you should replace the line above with the following as northwst did earlier

$temp_buffer = '<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
'. $channel_title . $channel_image .' <copyright>© 2005 DCLXVI</copyright>
'.$channel_list.' </channel></rss>';

header('Content-Disposition: inline; filename=temp_filename.xml');
header('Content-Type: application/xml');
header('Content-Length: '.strlen($temp_buffer));
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
echo $temp_buffer;

so, the code should look like what I have typed below starting at line 650

$channel_image = " <image>n".
" <url>" . $channel_image . "</url>n".
" <title>". xmlentities($di) ."</title>n".
" </image>n";

$temp_buffer = '<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
'. $channel_title . $channel_image .' <copyright>© 2005 DCLXVI</copyright>
'.$channel_list.' </channel></rss>';

header('Content-Disposition: inline; filename=temp_filename.xml');
header('Content-Type: application/xml');
header('Content-Length: '.strlen($temp_buffer));
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
echo $temp_buffer;

}else{



?>


All I really did was change some of quotes from double to single. And, again, make sure that you define what your path is as I mentioned in my previous post. Let me know if you still have trouble and i will send you my "index.php" file.
+
 

03/12/06 Alucard11
yup..im stillhaving problems with this..i cant get it to work..i already changed wat u said needed to be changed...
+
 
Recent Reviews: Lumines 2

03/18/06 jas2002
it works but how do i get it to goto rss feeds so i can view them and listen to them from there instead of downloading them
+
 

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16

register / login
you must be a member to reply or post. signup or login