Thumbnail (with open_basedir restrictions)

images php coding issues or problems here.

Moderators: macek, egami, gesf

sanderdolphin
New php-forum User
New php-forum User
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am

Thumbnail (with open_basedir restrictions)

Postby sanderdolphin » Wed Nov 03, 2004 6:42 am

I've got a problem I can't solve.

I want to be able to bring up a small thumbnail of an image, but every code I've tried generates errors such as "Warning: opendir(): open_basedir restriction in effect."

Can anyone think of a way to achieve this without having to use commands that would generate that wretched error.

The initial images are of various sizes, and the destination size will be a maximum width of 125 and maximum height of 96. I would call this with something like "show_image.php?filename=(image)" in an IMG tag.

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Wed Nov 03, 2004 8:19 am

What are you using opendir() for?

sanderdolphin
New php-forum User
New php-forum User
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am

Postby sanderdolphin » Thu Nov 04, 2004 3:28 am

There's like 2,000 images with them constantly being updated, it became very time consuming.

I liked the idea of using a program that would check to see if it existed, if not to then create it and save in a thumbnail folder. Unfortunately, when I start using commands like ImageCreateFromJPEG, or try pre-made scripts they all start to fail with the open_basedir error :(


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest