You are here: Re: Building thumbnail page (mysql) « PHP Programming Language « IT news, forums, messages
Re: Building thumbnail page (mysql)

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация