I'm guessing that this must be a common trick, but googling it did not come up with an example that I could figure out.

Basically I'd like to put a link to what looks like an MP3 file, but which is redirected to a script. The script determines if the person is subscribed to that particular issue. If they are, it does a readfile(), otherwise it does not.

I cannot do a simple force of mp3 files to be handled by PHP, or at least I don't want to, because then I would need a file for every mp3, and as the list comes out of a database, this would be troublesome.

The basic problem I have is, not being familiar with mod_rewrite, I find myself in the endless maze that everybody warns you about, fiddling around and smashing fists on the table wondering why the simplest !)(#(*#@ expression won't work.

What I'm looking for is for a URL like this:

http://www.example.com/path/path/somefile.mp3

to become:

http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3

Can anybody give me a clue here?  Thanks.
begin:vcard
fn:Kenneth  Downs
n:Downs;Kenneth 
adr;dom:;;347 Main Street;East Setauket;NY;11733
email;internet:[EMAIL PROTECTED]
tel;work:631-689-7200
tel;fax:631-689-0527
tel;cell:631-379-0010
x-mozilla-html:FALSE
url:http://www.secdat.com
version:2.1
end:vcard

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to