PDA

View Full Version : [RESOLVED] Script for viewing a list of jpegs


jerrittpace
12-25-2007, 06:59 PM
Can someone help me strusture this code so that I can add a good looking picture viewer to a list of jpegs that a php scpirt finds in a directory. The original code I got from link (http://nyphp.org/content/presentations/3templates/task3-plain.php).

The site sits at mysite (http://dallasundergroundlive.com/security/index.php).


Thanks for any help you can offer

Jerritt

Vege
12-31-2007, 12:13 PM
question is, what do you want the page to look like?

jerrittpace
01-03-2008, 11:27 PM
http://dallasundergroundlive.com/security/index.php

well this is what it looks like now.

If i can get the code to display the jpegs in anything other than list style, I would be estaticright now. I think once i get that, I can edit the look of the page.

As far as the look of the actual picture viewer, you know, ill settle for anything right now, but I would like a completely customizable viewer if I can find it, hopefully I can find just a code script.... oh a thumbnail option would be great though.

I have been trolling the internet trying to get help to make this work. Any help would be much appreciated. Ill send you the actuall php script if it would help, but really all i am looking for is the short to display the pics on the webpage.

Thanks for your help

Jerritt

Vege
01-06-2008, 06:25 PM
No need for multiple topics in same matter. Have you tried this one?
http://www.flash-here.com/downloads/fhimage.html
Seems easy enough.

jerrittpace
01-07-2008, 01:45 AM
Thanks thats exactly what I needed. Is there a way to deal with the problem that php quits deciphering after a short while. The jpeg pictures are in a directory that has a huge list of pictures from time to time, and this little aplette works really well, but it times out if there are too many pictures.

Will this work for a lot of files? Any suggestions on how to get around this problem? SHould I use another option other that php script?

Thanks again

Vege
01-08-2008, 05:16 PM
Well it can get complicated, you can change it in php.ini or you might succeed with ini_set method that will override the php.ini option.
Save the following text in test.php and upload it to your host.

<?php
ini_set(max_execution_time,90);
$b = ini_get(max_execution_time);
echo "$b";
?>
Run it and if the output is "90", your good to go.
Meaning you can copy line
ini_set(max_execution_time,90);
as a first line of that php application in file that does the part that takes too mutch time.
If not, you need to change php.ini file in your server (or ask your webadmin to do so) as there is the master max_execution_time variable.

jerrittpace
01-08-2008, 05:20 PM
THANKS!!!

You are smart. I am really proud of myself that I could understand this well enough to know what I need to do.

Thanks again!!!