Warning: fopen(graphic_design/files/thread-2551-1.txt) [function.fopen]: failed to open stream: Permission denied in /graphic_design/global.php on line 421
file NOT opened a little q about tG -
PDA

View Full Version : a little q about tG


haumovie
01-05-2005, 08:40 AM
Trying to set up thumbnailGenerator and I can't get it to look at more than one directory for pics. in the setup.inc.php, the line $picFolder = './'; //PATH TO THE PICS, RELATIVE TO THIS FILE, ENDING WITH / i try to add like this $picFolder = './' '../another dir/; but it just says error in line 40. :rolleyes:
Is it at all possible to have it look at different dirs? Please be kind a I'm far from good at php. :)
Another thing is I don't actually get any thumbs. Just red x. However, when clicking on them, the image does display fine in a popup.
Thanks

freakyclean
01-05-2005, 09:14 AM
The way it stands now it will not read from multiple directories.

You can set it up so you can, like I do on my site.

You have to remove the picfolder variable from the setup file and then pass that variable to the index.php. You also have to find the picfolder variable in the index.php and remove the directory info preceding it if I remember correctly.

Koobi
01-05-2005, 09:30 AM
You can't do what you have tried. It will probably throw you a parse error from what I can see.

I haven't used this script but does it let you look at more than one directory?
If so, it probably lets you store the multiple paths in an array.
Maybe you can try this:

$picFolder = array('./', '../another dir/');


and if that doesn't work, link me to this script and tell me which file I should look into to see what you are seeing right now and hopefully I can figure it out :)