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
Search found 24 matches
- Fri Sep 20, 2013 1:35 am
- Forum: Tutorials
- Topic: Auto thumbs image gallery
- Replies: 3
- Views: 3352
- Thu Sep 19, 2013 4:10 am
- Forum: Tutorials
- Topic: Auto thumbs image gallery
- Replies: 3
- Views: 3352
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 <?php if (iss...
- Thu Jun 20, 2013 2:35 am
- Forum: JavaScript
- Topic: button problem
- Replies: 6
- Views: 5447
Re: button problem
Thank you Helix
I will try this out
I will try this out
- Wed Jun 19, 2013 3:16 am
- Forum: JavaScript
- Topic: button problem
- Replies: 6
- Views: 5447
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 ...
- Sat Jun 15, 2013 2:54 am
- Forum: JavaScript
- Topic: button problem
- Replies: 6
- Views: 5447
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 ...
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
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
Re: path
Thanks Curia
I am using lamp, Files is a directory in the root directory where the partition is mounted.
Thanks for replying
I am using lamp, Files is a directory in the root directory where the partition is mounted.
Thanks for replying
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...
- Sat Nov 05, 2011 12:07 am
- Forum: PHP
- Topic: Windows and Linux
- Replies: 5
- Views: 1334
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
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
- Thu Nov 03, 2011 12:46 am
- Forum: PHP
- Topic: Windows and Linux
- Replies: 5
- Views: 1334
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 if($colCtr % $cols == 0){ this allows the images to be diisplayed but in a list view, which is not what i want. There is nothing wrong with the if statement, so why...
- Fri Oct 28, 2011 3:07 am
- Forum: PHP
- Topic: Windows and Linux
- Replies: 5
- Views: 1334
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. $images = "thumbs/$name/"; $big = "gallery/$name/"; if($handle=op...
- Tue Sep 27, 2011 2:37 am
- Forum: PHP
- Topic: createimagefromjpg function
- Replies: 1
- Views: 657
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
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
- Sun Sep 25, 2011 12:56 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
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
I appreciate it
Once again thank you

- Fri Sep 23, 2011 1:38 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
Re: Automatic Image Gallery
Here is the script <?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; $thumb_heigh...
- Thu Sep 22, 2011 1:33 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
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
Thanks
- Wed Sep 21, 2011 12:52 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
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?
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?
- Tue Sep 20, 2011 1:38 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
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...
- Mon Sep 19, 2011 3:09 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
Re: Automatic Image Gallery
This is the address when i run the script, with all the broken image links visible http://localhost/ImageGallery/gallery.php ( 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 direct...
- Sun Sep 18, 2011 1:03 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
Re: Automatic Image Gallery
Hi Here is all the code <?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 = 100; $thumb_...
- Sat Sep 17, 2011 1:19 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
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
What was passed in to $_GET['img'] in the video? . I did'nt
see that bit
Thanks
- Fri Sep 16, 2011 12:50 am
- Forum: Tutorials
- Topic: Automatic Image Gallery
- Replies: 22
- Views: 6863
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...