Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Thumbnail (with open_basedir restrictions)

images php coding issues or problems here.

Moderators: macek, egami, gesf

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.
sanderdolphin
New php-forum User
New php-forum User
 
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am

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

What are you using opendir() for?
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

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 :(
sanderdolphin
New php-forum User
New php-forum User
 
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am


Return to PHP coding => Images

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron