Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Remote file access w/ IP + PHP?
Closed Thread
Old 03-29-2007, 11:14 PM   #1 (permalink)
 
True Techie

Join Date: May 2006

Location: Chicago IL

Posts: 104

thejeremy

Send a message via AIM to thejeremy
Default Remote file access w/ IP + PHP?

Ok this might be kind of a loaded question so bear with me:

This project I'm working on deals with streaming music from one computer to another. I'm developing a website where users will be able to register, log in, and enter the IP address of their personal computer that has all their music files on it. Once this is done (and the computer with the music on it is configured correctly) the user will potentially be able to log in from anywhere and stream music from his/her remote personal computer to the computer he/she is currently working on.

I hope I didn't confuse anyone

What I'm wondering is...

1) ...if PHP is capable of accessing a person's file system in the way described above using a provided IP address, given the remote computer is setup to allow such a connection, and...

2) ...if there are better options than PHP, even if PHP can do this?

If more clarification is needed let me know. Any help is appreciated.
__________________
CPU: AMD Athlon 64 X2 5200+ Windsor, 2.6 GHz
RAM: CORSAIR XMS2 2GB 240-Pin DDR2
VIDCARD: EVGA PCI-Express x16 GeForce 7900GS 256MB
MOBO: ASUS M2N-SLI Deluxe AM2
HDD: Seagate Barracuda 320GB 7200 RPM SATA

my blog: http://jspot.gotdns.com
thejeremy is offline  
Old 04-03-2007, 02:59 PM   #2 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default Re: Remote file access w/ IP + PHP?

Wow, you and your complex projects...!

1. "given the remote computer is setup to allow such a connection" - meaning what? The only obvious way I know of is with a FTP server... something like:
1. User registers and provides his/her IP, FTP port, username and pasword.
2. PHP can then parse all directories there and store them on the server...however you'd want - when the user logs in, when the user presses a button, etc. or display a real-time listing of the directories (both require parsing the info for a nice output).
3. The user can:
a. Log in and view the files...and this is where it's a bit odd. You can use the server as a go-between (higher chance for latency issues/more bandwidth unnecessarily used?)
b. Provide a direct FTP link.

Obviously I've never done any "streaming", so I'm not sure what all is involved.

...hmm...perhaps you can use AJAX! Break the file into small pieces, and based on the bandwidth, get the latest pieces of data from the server...haha!

And I am sure there are better options - but what they are - I have no idea!

Hah, I know that didn't help much... anyways, I think your two player PHP game would be much easier - as long as you are familiar with MySQL too, and you're not afraid of either using javascript's XML object or constantly refreshing the page...as all it would be doing is updating the page based on the mysql database info.
__________________
Vormund is offline  
Old 04-04-2007, 05:24 PM   #3 (permalink)
 
True Techie

Join Date: May 2006

Location: Chicago IL

Posts: 104

thejeremy

Send a message via AIM to thejeremy
Default Re: Remote file access w/ IP + PHP?

Vormund,

It's ok, I know I ask tough questions

I ended up finding and downloading some free software that you install on the computer with the music files and it worked just great. This is what I ended up downloading: Slim Devices : Support : Downloads

It's cross-platform and is exactly what I need. My project then is basically a website that acts as a wrapper for the downloaded software. I'm working on seeing if users can browse other users' music libraries. When I'm done I'll post the link here.

Thanks for trying!
__________________
CPU: AMD Athlon 64 X2 5200+ Windsor, 2.6 GHz
RAM: CORSAIR XMS2 2GB 240-Pin DDR2
VIDCARD: EVGA PCI-Express x16 GeForce 7900GS 256MB
MOBO: ASUS M2N-SLI Deluxe AM2
HDD: Seagate Barracuda 320GB 7200 RPM SATA

my blog: http://jspot.gotdns.com
thejeremy is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 2-player game? thejeremy Programming Discussions 4 04-09-2007 06:01 PM
Webpage Access Brain Windows Operating Systems and Software 1 03-29-2007 11:50 PM
Having trouble getting a downloaded file Bendersterrier Browser & General Internet Questions 1 03-28-2007 12:42 PM