Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 24th, 2004, 12:11 AM
unipus unipus is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 unipus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Using PHP to play (server side) audio

Hey!
I've got an old 400MHz PII that I want to turn into an audio player. It's going to sit in an enclosed stereo cabinet and connect to the stereo system via SPDIF. It will be on my local home network. This system will either run Apache on freeBSD, some linux flavor, or Win2k -- whichever turns out to be the easiest for this project.

So, what I'd like to do, is code a PHP website accessible to the local network that displays a list of audio files (.wav, .shn, .flac) contained in a directory on the server. When a file (or file list) is clicked, the server plays the audio locally (not on the client side), which would be connected to the stereo via SPDIF. This would allow me to control the music on the server from my wireless laptop, or other computers on the network by going to this intranet site.

I guess the PHP would have to use a system() command or something equivalent to invoke a player and load the proper audio. Or is there a better way to accomplish this with PHP? Or, perhaps, is there no way to accomplish this? I know that there are other routes to accomplish this task, but I'm most efficient in PHP/Apache and want to know there is a way to do it using these tools.

I don't have any practice using system() and exec() type functions. Perhaps I am looking beyond their capabilities?
Thanks in advance!

Reply With Quote
  #2  
Old March 27th, 2004, 11:33 PM
-vertigo- -vertigo- is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Louth, Lincolnshire
Posts: 314 -vertigo- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 3
RE: Using PHP to play (server side) audio

The only thing I can think of is writing a COM object to play the waves and then loading that in PHP (however you do that, read the manual). I would be greatly surprised if PHP had anything remotely to do with sound on the server.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Using PHP to play (server side) audio


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek