Re: setting a handler to a php script

From: Date: Tue, 25 Jul 2000 13:39:32 +0000
Subject: Re: setting a handler to a php script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8037@lists.php.net to get a copy of this message
On Jul 25 code0php@code0.net wrote: code0p> I'm looking for a solution to make php the handler for a specific file. I code0p> want to have a file like download.mp3 that can be called as code0p> download.mp3?song=2 or something like that. I want to know how I get a PHP code0p> script to handle this with at most, an htaccess file modification. I need code0p> to do this because the files are being sent to another server, not a code0p> client, so a php extension wouldn't work because the server won't accept code0p> it. Thanks! Add to your httpd.conf somthing like this; <Files "download.mp3"> AddType application/x-httpd-php .mp3 </Files> code0p> code0p> code0p> -- code0p> PHP General Mailing List (http://www.php.net/) code0p> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net code0p> For additional commands, e-mail: php-general-help@lists.php.net code0p> To contact the list administrators, e-mail: php-list-admin@lists.php.net code0p> code0p> -- Andrey W. Ohrimenko (AR615-RIPE) Ukraine Industrial: http://www.gemma.kiev.ua/

« previous php.general (#8037) next »