Sound Files in webpages?

J

John

Hello.

If I wanted to make a website of sound files that are playable within
the actual webpage, but people visiting the site can't save, or see
the filenames so they can download from the site, is this possible?

What would be the best format to save the sound clips in? I would
need something that doesn't take up too much space but is good
quality.

Is it possible to somehow use a php include statement so that the
filename is not visible?

I am fairly new to the world of php and am just starting to learn it.

Thanks for any help

John
 
A

Agelmar

PHP is totally server side. All the PHP is processed and turned into some
(non-php) output. It is not a client-side thing. As for making things that
people can't download nor save, or see the filenames etc... if it's made
available to the browser (which you have to do in some form or other),
someone can save it.
 
C

Chung Leong

Just the Real plugin to play the files within the browser itself. Here's the
URL to the Real API guide:

http://service.real.com/help/library/guides/realonescripting/browse/realscri
pt.htm

The links for playing the files would call a Javascript function, which in
turn calls a method of the plugin to set the URL and start the player. Put
this function, along with the list of file paths in a PHP-generated .js file
and link it in, to make it a little harder for people to find out where the
files are. If you want to be real sneaky, set the encoding of the .js file
to UTF-8 and stick a zero-width white-space at the end of each filename.
The oughta confuse the heck out of them :)
 
A

Agelmar

Other than the fact that most people don't have the Real player installed,
and I wouldn't touch the damned thing if my life depended on it... it's
still an incredibly easy matter of opening up the source code and looking
for the URL.

And by the way - there are a lot of people, myself included, who have
javascript disabled. Kill js and you get rid of all the bs popups,
popunders, onclose abuses, right click modifiers etc.
 
R

R. Rajesh Jeba Anbiah

[top-post fix]

Agelmar said:
Other than the fact that most people don't have the Real player installed,
and I wouldn't touch the damned thing if my life depended on it...

Yes, though anti-Real sentiment is bit common among developers, I
could see many site use it. Their compression is tremendous, for
example a MP3 file of about 6MB easily compressed to just 700KB in
their format, which is real benefit for online play stations.
it's
still an incredibly easy matter of opening up the source code and looking
for the URL.

Yes, anything over HTTP can easily be trapped. But, if you use RTSP
(Real) or MMS (Microsoft), you can __somewhat__ control the "file
saving". Probably using PHP to dynamically create ASF files (for MMS)
may help a bit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top