Re: [PHP] Images not stored in Databases

2002-12-24 Thread Gilles Haverbeke
I think you should first research what the limit of files is in the
directory where you want to place the files. Then just create some structure
that you start with a directory called 1 and store the file there. If the
limit of directory 1 is reached just let your script automaticly create a
seconde directory and start storing there. Of course you should keep record
of wich image is located where. Maybe you should name the uploaded images
the same as the users email address. As far as I know it is no problem to
have a filename with an @ in it so I think this is the best way to make sure
you don't have conflicts with filenames.

Is that what you mean?

Greetz,
Gilles

- Original Message -
From: Steve Vernon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 24, 2002 3:27 PM
Subject: Re: [PHP] Images not stored in Databases


 Hiya.

 Yeh sorry I should of mentioned, using an upload script. And then I
 shrink them (or grow) using GD.

 I understand I could give everyone a directory, but everyone would
only
 have one picture, so a waste of time.

 What would make more sense, and to ignore the limit on number of items
 in a directory, is to have directories like a-z and directories inside
them
 of a-z till there can be over a million stored. And then create a random
 combination and try and place it in one of the root directories. Is there
a
 sctript that organises huge numbers of pictures in directories?

 Also everyone logs in using there email address, not a username, so I
 would prefer not to have to give them usernames!

 THanks,

 Steve


  How will the picture make it into the db?  Will they be uploaded by
users?
  I had to create an upload script for a sight that puts the picture in
the
  users directory on the webserver and then stored the path to the picture
 in
  the db so when the web page is displayed, the tag is something like this
  img src=? print myrow[picture1]; ? .  Picture1 just holds the
  physical address such as /users/eddie/myhouse.jpg.  That way, the db
isn't
  huge.
 
  Is that what you mean?
 
  Eddie
 
  -Original Message-
  From: Steve Vernon [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 24, 2002 8:57 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Images not stored in Databases
 
 
  Hiya,
  I have had help from a very useful person on storing images in
  databases, and basically now I don't want to do this. But I may end up
  storing a lot of pictures, and don't want to mess around.
 
  Is there a script or class, that is as simple as storing in a
 database,
  that will handle possibly millions of pictures, and given a picture will
  return the URL where it is stored? I suppose I could build one myself,
but
 I
  can see it being quite difficult, with problems such as maximum number
of
  files in directories etc.
 
   I have had a look at a few PHP pages, but cannot find anything
  suitable.
 
  Any help would be great.
 
  Have a great Christmas.
 
  Love,
 
  Steve
  XX
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] forum?

2002-12-24 Thread Gilles Haverbeke
http://www.phpbb.com/ is the best free one I have seen.

Greetz,
Gilles
- Original Message -
From: Fatih Üstündað [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Tuesday, December 24, 2002 3:51 PM
Subject: [PHP] forum?


 do you know freeware forum in php I can easly use?

 thanks.
 fatih ustundag

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php