Helow Download php file
Posted: Wed Mar 04, 2009 4:37 am
i have a php file and want to give facilit for clints to dwonload file.
i am using this scritp
$id =$_GET["id"];
if($id=="php")
{
header("Content-disposition: attachment; filename=aa.php");
readfile( $_SERVER['DOCUMENT_ROOT'] . "/ShoppinScript/aa.php");
}
echo "<a href='showscript.php?id=php'>Download the file to run script in your Div</a>";
/////////
to do this file download with success but the data on containing link file write in dwonloaded file.\
like i dwonload aa.php but the data of showscript.php also added in aa.php.
i need only aa.php data.
pls help me if possible.
i am using this scritp
$id =$_GET["id"];
if($id=="php")
{
header("Content-disposition: attachment; filename=aa.php");
readfile( $_SERVER['DOCUMENT_ROOT'] . "/ShoppinScript/aa.php");
}
echo "<a href='showscript.php?id=php'>Download the file to run script in your Div</a>";
/////////
to do this file download with success but the data on containing link file write in dwonloaded file.\
like i dwonload aa.php but the data of showscript.php also added in aa.php.
i need only aa.php data.
pls help me if possible.