Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Photogallery and directories

Asked Modified Viewed 2,033 times
R
RpR
R
RpR 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

I'm running 6.01.3 on my production website, and have 6.01.12 as a playground at the moment, on another a lot less restrictive server.

When users create albums on the .3 server, all their files end up in the /iamges/photoalbum folder.
On the .12 server, a folder with "useralbum_1", "useralbum_2" etc. is created and files upload into here, which obviously if preferred :-)

Did something change within these versions?
0 replies

7 posts

W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Where did you download 6.01.12?
0 replies
R
RpR
R
RpR 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Type errror, .11 :-)
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

Maybe you are running this new site on another (different) server? I guess that this issue is Safemode related.

Safemode Off:
/images/photoalbum/album_1/ photos goes here......
/images/photoalbum/album_2/ photos goes here......
/images/photoalbum/album_3/ photos goes here......
osv.

Safemode On:
/images/photoalbum/ all photos goes here......

Check Safemode (run in a custom page):
<?php
if (ini_get ( "safe_mode" ))
{
echo "SafeMode On";
}
else
{
echo "SafeMode Off";
}
echo"<br>";
if (ini_get ( "safe_mode_gid" ))
{
echo "SafeMode GID On";
}
else
{
echo "SafeMode GID Off";
}
?>
0 replies
R
RpR
R
RpR 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Ah yes, that would be it then.
It's a linux server, anyone know of limitations, regarding how many files can be in one directory?
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

Quote

RpR wrote:
anyone know of limitations, regarding how many files can be in one directory?

Unlimited, I believe. Depending of total space available ofcourse.
0 replies
R
RpR
R
RpR 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Excellent, thank you :-)
0 replies
J
jms1989
J
Michael's Computer Lab - We help. You learn.
Michael's Web - My personal wibsite.
JWN Media - 500MB of space, 1500MB of bandwidth, Ad-Free, and easy-to-use control panel, and much more and it's all free.
  • Junior Member, joined since
  • Contributed 33 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

I know a bit about linux servers. The max number of files on a single partition would be limited well in the millions if not tens of millions depending on the size of the partition. So a 40Gig partition can hold at least 2 million files. I know when I use the fsck function to check my disks on bootup I see a small number and a big number like (349798/4552668), I suppose that might tell me how many file can fit in the partition.

That's still a large number so you shouldn't have anything to worry about but it's good idea to keep the number of files per folder to a reasonable number, say 1,000 or 2,000 to prevent the server from having to do some unneeded searching.

If course, I could be wrong about this. If you want to try to research this, may I suggest Wikipedia?
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet