picture gallery

This is a discussion on picture gallery within the PHP Language forums, part of the PHP Programming Forums category; Hello, I don't know if my question is out of topic...so I apologize if I am. I use ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-11-2004
Simone Winkler
 
Posts: n/a
Default picture gallery

Hello,

I don't know if my question is out of topic...so I apologize if I am.

I use the coppermine picture gallery for my web (actually I want to use it
but the server doesn't seem to have GD running but I will beg them to
activate it). How can I actually find out if GD is installed? I tried to use
phpinfo() and I searched for a GD entry, but no one was there, so can I be
sure, that GD isn't installed? (Because the admins of the webhosting told me
that it IS installed.)

But the actual question is:
I've got an old web gallery with descriptions of the pictures. I'd now like
to transform this into the new gallery - I don't mind uploading the pictures
again, but I am really horrified by the idea of entering all that
description text again for all those pictures. So I was asking myself, if it
was possible to take the descriptions somehow out of all those html-files
and insert them automatically as comments (the coppermine gallery is able to
receive comments to the pictures) to the coppermine picture gallery. Do you
know if there's a way to do this or is it just impossible? The text could,
instead of as a comment, also just be added as text below the picture (I'd
even prefer this solution).

The original html-files are just very simple (some thumbnails, then the
picture, below the text...).

Thank you for your reply!

Simone


Reply With Quote
  #2 (permalink)  
Old 08-11-2004
Erwin Moller
 
Posts: n/a
Default Re: picture gallery

Simone Winkler wrote:

> Hello,
>
> I don't know if my question is out of topic...so I apologize if I am.
>
> I use the coppermine picture gallery for my web (actually I want to use it
> but the server doesn't seem to have GD running but I will beg them to
> activate it). How can I actually find out if GD is installed? I tried to
> use phpinfo() and I searched for a GD entry, but no one was there, so can
> I be sure, that GD isn't installed? (Because the admins of the webhosting
> told me that it IS installed.)


Maybe it is installed, but PHP is not compiled against it.
if you use phpinfo() you SHOULD see it.

Check the 'Configure Command' part and see if GD is in there.
As far as I know it should also appear in the list that follows under GD.

make a script, callit testgd.php, and put this into it:

<?php
header("Content-type: image/png");
$im = @imagecreate(250, 100) or die("Cannot Initialize new GD image
stream");
$background_color = imagecolorallocate($im, 100, 100, 100);
$text_color = imagecolorallocate($im, 0, 255, 255);
imagestring($im, 10, 5, 5, "GD is working, Simone!", $text_color);
imagepng($im);
imagedestroy($im);
?>

Call it.
It should return an image (png)

If that doesn't work, ask your provider for an explaination.
If the provider keeps saying it is working, switch provider.


>
> But the actual question is:
> I've got an old web gallery with descriptions of the pictures. I'd now
> like to transform this into the new gallery - I don't mind uploading the
> pictures again, but I am really horrified by the idea of entering all that
> description text again for all those pictures. So I was asking myself, if
> it was possible to take the descriptions somehow out of all those
> html-files and insert them automatically as comments (the coppermine
> gallery is able to receive comments to the pictures) to the coppermine
> picture gallery. Do you know if there's a way to do this or is it just
> impossible? The text could, instead of as a comment, also just be added as
> text below the picture (I'd even prefer this solution).
>
> The original html-files are just very simple (some thumbnails, then the
> picture, below the text...).


What you really need is a simple database.
I cannot help you with a script to extract all the descriptions out of a
HTML-page. That might be a bit complicated, but it can be done.

My advise is: Use a database, it isn't complicated.

Regards,
Erwin Moller

>
> Thank you for your reply!
>
> Simone


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0