|
Posted by Krustov on 10/29/06 15:38
<comp.lang.php>
<Geoff Berrow>
<Sun, 29 Oct 2006 01:45:47 +0100>
<79u7k2p5g9uop3r6mrc5g4qhc2b11ru7fd@4ax.com>
> http://www.walkingoutdoors.co.uk/Geoff/gallery/
>
> http://www.walkingoutdoors.co.uk/Geoff/gallery/gallery.zip
>
$filename="main";
if (!file_exists($filename)) {mkdir($filename,0777);}
$filename="thumbs";
if (!file_exists($filename)) {mkdir($filename,0777);}
Although i'm watching the snooker final - i had a look between frames at
your gallery script .
Why not put the above at the start of the index.php or create a
install.php file ? .
Any text files that need created could be done using touch .
$filename="blah/demo.txt";
if (!file_exists($filename))
{
touch($filename);
chmod($filename,0766);
$temp="Nowt Yet";
$fp=fopen($filename,"w");
fwrite($fp,$temp);
fwrite($fp,"\n");
fclose($fp);
}
You suggested ws_ftp to me the other day on another newsgroup to set the
file permissions and i thought you where trying to take the piss given
you are much more experienced at php than i am .
--
www.phpchatroom.co.uk
[Back to original message]
|