Search found 8 matches

by jan24
Sat Mar 10, 2012 1:17 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

Alright now I did this:
 echo "<a href=\"img/{$image}\"><img src=\"?img={$image}\" alt=\"{$image}\" /></a>";
And that seems to work!
Thanks a lot.
I'm sorry all the trouble.
by jan24
Wed Mar 07, 2012 5:25 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

I guess u meen like this? echo "<a href=\"img/{$image}\"><img src=\"?img=img/img/{$image}\" alt=\"{$image}\" /></a>"; But then it totally doesn't works. It does makes the folder "thumbs" though. Only he doesn't makes from the pictures thumbnails. Tha...
by jan24
Mon Mar 05, 2012 9:49 am
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

My code: <?php if(is_dir('img/thumbs') === false){ mkdir('img/thumbs', 0744); } if(isset($_GET["img"])){ if(file_exists("img/".$_GET["img"])){ ignore_user_abort(true); set_time_limit(120); ini_set('memory_limit', '512M'); $src_size = getimagesize("img/".$_GET[...
by jan24
Thu Mar 01, 2012 2:20 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

Now I got one last problem: when I now add a new picture to the folder "img", it doesn't make a thumbnail. So whats working now: Displays the thumbnails pictures. Does the URL to big picture correctly. What doesn't work now: It doesn't make new thumbnails. Hope you can help me out again. T...
by jan24
Mon Feb 27, 2012 1:48 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

When I do this: $images = glob("img/*.{jpg,JPG,jpeg,JPEG,png,PNG,gif,GIF}", GLOB_BRACE); And this: echo "<a href=\"{$image}\"><img src=\"thumbs/{$image}\" alt=\"{$image}\" /></a>"; It still doesn't work. When I gonna watch the source code it displays...
by jan24
Fri Feb 24, 2012 12:47 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

Well the problem is. When I going to type everwhere img/ for it will not solve it. For example when I type it here: $images = glob("img/*.{jpg,JPG,jpeg,JPEG,png,PNG,gif,GIF}", GLOB_BRACE); It will give problems at the foreach: foreach($images as $image){ if(file_exists("img/thumbs/{$i...
by jan24
Tue Jan 31, 2012 7:39 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

Re: PHP Tutorial: Automatic Image Gallery [part 01]

Are you sure the variable is there in the url, you should see somethign like ?img=something in the address bar ? Thanks for your response. I had indeed nothing in the url like ?img=img001.jpg When I type something like that in the url, the error gets away, but also the gallery disappears. And I als...
by jan24
Sun Jan 29, 2012 6:21 pm
Forum: Tutorials
Topic: PHP Tutorial: Automatic Image Gallery [part 01]
Replies: 15
Views: 1846

PHP Tutorial: Automatic Image Gallery [part 01]

I get stuck at 11:30 from the toturial video. When I type in this code: if(isset($_GET["img"])){ die(); } It doesn't kill the code. But at the video it kills the video. It doesn't display any error either though, it just displays the boxes where the images should be like in the video befor...