say i have a php script that i access via the web and that creates a
file whose permissions are changed to 600 (ie. only the owner can read
or write the file). when i try to download the file with the
webbrowser... i can. what i want is to not be able to download the
file, itself. i only want the php script i wrote to download the
file... how could i do this? is it simply a matter of changing the
permissions?
anyways, here's my code:
<?
system("ls -l > test.txt");
chmod("test.txt ", 0600);
?>
file whose permissions are changed to 600 (ie. only the owner can read
or write the file). when i try to download the file with the
webbrowser... i can. what i want is to not be able to download the
file, itself. i only want the php script i wrote to download the
file... how could i do this? is it simply a matter of changing the
permissions?
anyways, here's my code:
<?
system("ls -l > test.txt");
chmod("test.txt ", 0600);
?>
Comment