Search found 24 matches

by Romulas
Fri Sep 20, 2013 1:35 am
Forum: Tutorials
Topic: Auto thumbs image gallery
Replies: 3
Views: 1697

Re: Auto thumbs image gallery

I am absolutely sure the file is in the same dir as the script. I was thinking it maybe has something to with Linux, i could be wrong.
This script worked in windows
Thanks ScTech
by Romulas
Thu Sep 19, 2013 4:10 am
Forum: Tutorials
Topic: Auto thumbs image gallery
Replies: 3
Views: 1697

Auto thumbs image gallery

Hi Some time ago, on your youtube site there was an auto image gallery tutorial. I decided to give it a try. My first attempt was on windows. Since then i have migrated to Linux and have found that this script does not work. So, i started from the beginning and this is where i am up to [syntax=php]<...
by Romulas
Thu Jun 20, 2013 2:35 am
Forum: JavaScript
Topic: button problem
Replies: 6
Views: 2653

Re: button problem

Thank you Helix
I will try this out
by Romulas
Wed Jun 19, 2013 3:16 am
Forum: JavaScript
Topic: button problem
Replies: 6
Views: 2653

Re: button problem

hi I have done a little research on the problem, and i found that this requires javascript to work. I did'nt know that when i posted this article. However, i did find out about the html 'onClick' event, is it possible to use that. If so, could you elaborate on how could this be done. I want to have ...
by Romulas
Sat Jun 15, 2013 2:54 am
Forum: JavaScript
Topic: button problem
Replies: 6
Views: 2653

button problem

hi I wan't to have a page with 4 buttons, and when i press one of the buttons i want some other things to happen. I have written some html code for the buttons and some code to check which button i pressed. However when i test this, it runs and automatically selects and uses the first button on the ...
by Romulas
Sat Jan 14, 2012 12:59 am
Forum: PHP
Topic: path
Replies: 5
Views: 776

Re: path

Jacek
My script is dealing with a lot of images and my hdd is just about full, so i have added
another hdd to store al the images. I was hoping I could access the images from that location.

Thank you
by Romulas
Wed Jan 11, 2012 11:44 pm
Forum: PHP
Topic: path
Replies: 5
Views: 776

Re: path

Thanks Curia
I am using lamp, Files is a directory in the root directory where the partition is mounted.

Thanks for replying
by Romulas
Wed Jan 11, 2012 1:02 am
Forum: PHP
Topic: path
Replies: 5
Views: 776

path

Hi I am try to make my php script access files from another partition on my harddrive but it does not seem to work, i have tried the include_path but when i use that the screen goes white and thats all that happens. I don't get any errors. My script displays thumbnail images. This is the path i want...
by Romulas
Sat Nov 05, 2011 12:07 am
Forum: PHP
Topic: Windows and Linux
Replies: 5
Views: 836

Re: Windows and Linux

Thanks Jacek
Your code works really well.

Iwould really like to display the names of the images aswell, I am considering
using the exif function to get the names,what do you think or what would you suggest.
Is there a better way, hopefully eaiser.

Thank you
by Romulas
Thu Nov 03, 2011 12:46 am
Forum: PHP
Topic: Windows and Linux
Replies: 5
Views: 836

Re: Windows and Linux

Hi Jacek I have tried your suggestions and have'nt been able to fix my problem, so i looked in other places. I removed the if statement [syntax=php]if($colCtr % $cols == 0){[/syntax] this allows the images to be diisplayed but in a list view, which is not what i want. There is nothing wrong with the...
by Romulas
Fri Oct 28, 2011 3:07 am
Forum: PHP
Topic: Windows and Linux
Replies: 5
Views: 836

Windows and Linux

Why does this code works fine in winows and not in Linux,it should display a number of thumbnails which it does in windows, but in Linux it only shows 1 thumbnail ? The print_r displays the right number of entries. [syntax=php]$images = "thumbs/$name/"; $big = "gallery/$name/"; i...
by Romulas
Tue Sep 27, 2011 2:37 am
Forum: PHP
Topic: createimagefromjpg function
Replies: 1
Views: 509

createimagefromjpg function

Hi
I have created the automatic image gallery script, now i want to put it on my linux server.

The problem is when i run the script i get this error

Undefined function createimagefromjpg()

The script was orignally written on a windoz 7 computer

Thank you
by Romulas
Sun Sep 25, 2011 12:56 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

Finally got the script to work, a big thank you to jacek for your help over the past week, I thank you for your time and patiences
I appreciate it

Once again thank you :D
by Romulas
Fri Sep 23, 2011 1:38 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

Here is the script [syntax=php]<?php if (isset($_GET['img'])) { if(file_exists($_GET['img'])){ ignore_user_abort(true); set_time_limit(120); ini_set('memory_limit', '512M'); $src_size = getimagesize($_GET['img']); if($src_size === false){ die("This is not an image"); } $thumb_width = 220; ...
by Romulas
Thu Sep 22, 2011 1:33 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

I deleted the thumbnail and started again, by excuting the the script, should'nt that create thumbs for all the pictures in my case the ImageGallery folder. When you say "remove the broken ones", what do you mean?

Thanks
by Romulas
Wed Sep 21, 2011 12:52 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

I have fixed all the errors and it produced a thumbnail(fantastc). The only problem now is
that it only produces the thumbnail i select by adding ?img=picture.jpg to the
addressbar. How can i make it produce all images automatically?
by Romulas
Tue Sep 20, 2011 1:38 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

Finally, i am getting somewhere commenting out that line has produced a stack of errors, I have: Undefined variable thumb_height line 25,31and 40 Divide by zero line 25 Undefined variable new_size line 31 Undefined offset 1 line 37 and 38 Warning imagecreatetruecolor() invalid image dimention line 4...
by Romulas
Mon Sep 19, 2011 3:09 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

This is the address when i run the script, with all the broken image links visible m ( i addedd this)?img=picture.jpg and i got this Not Found The requested URL /ImageGallery/thumbs/picture.jpg was not found on the server Why is it looking in the thumbs directory for a thumb that has not been create...
by Romulas
Sun Sep 18, 2011 1:03 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

Hi Here is all the code [syntax=php] <?php if (isset($_GET['img'])) { if(file_exists($_GET['img'])){ ignore_user_abort(true); set_time_limit(120); ini_set('memory_limit', '512M'); $src_size = getimagesize($_GET['img']); if($src_size === false){ die("This is not an image"); } $thumb_width =...
by Romulas
Sat Sep 17, 2011 1:19 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

I posted all the code in my first post at the top of the page
What was passed in to $_GET['img'] in the video? . I did'nt
see that bit
Thanks
by Romulas
Fri Sep 16, 2011 12:50 am
Forum: Tutorials
Topic: Automatic Image Gallery
Replies: 22
Views: 3015

Re: Automatic Image Gallery

Thanks I removed all the back ticks but it did'nt fix the problem, the script sill does not work. I think the snippet of code below has something to do with the problem, because when the author of the video executes the print_r($src_size); it returns this: Array([0]=> 320[1]=>480[2]=>3[3]=>width=&qu...