url rewriting - I am looking to re-write a specific URl with php -


i using php script change download link "http://mydomain.com/get.php?download/" looking further change show "/get.php?download/ or more specific "?php" on web page button holds link.

here code:

<?php  $path = 'folder/blank.file/'; $mm_type="application/octet-stream"; header("pragma: public"); header("expires: 0"); header("cache-control: must-revalidate, post-check=0, pre-check=0"); header("cache-control: public"); header("content-description: file transfer"); header("content-type: " . $mm_type); header("content-length: " .(string)(filesize($path)) ); header('content-disposition: attachment; filename="'.basename($path).'"'); header("content-transfer-encoding: binary\n");  readfile($path); //output  exit();  ?> 

how possible? help!

edit: using lighttpd , invision power board.

i dont know if have made (its old question )... have may help.

to rewrite, in ipb can change core files ... take in here:

{forum-root}/admin/applications_addon/ips/downloads/extensions/furltemplates.php

in "idmdodownload" take in row:

'out' => array( '/app=downloads(&amp;|&)module=display(&amp;|&)section=download(&amp;|&)do=do_download(&amp;|&)id=(.+?)(&|$)/i', 'files/download/$5-#{__title__}/$6' ), 

you can rewrite , think can want ...

take @ ->my post rewriting in ipb


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -