Posted by Rik on 10/25/04 11:48
Letting the script connect by FTP and creating & chmodding the
direcotiry like that will indeed make it possible to access the files
locally or unlink()ing them.
A very ugly solution IMHO, but at this time I'm just relieved that
works.
I really should set up a server with that detestable safe_mode locally
here, this isn't funny when you're supposed to have a finished
product..
I'll be using this snippet at home from now on a think:
<?php
$list = ini_get_all();
$phpini = '';
foreach($list as $name => $setting){
if($setting['access'] > 3){
$phpini = $name.' = '.$setting['local_value'],"\n";
}
}
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="php.ini"');
echo $phpini;
?>
Navigation:
[Reply to this message]
|