Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 7th, 2003, 02:24 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
Creating an Image Gallery Tutorial Problem

Hi there...

I have been doing this tutorial, and I think it's great. It is exactly what I've been searching for. Later I will be adding a lot to it.

However, right now, I have a problem.

It doesn't seem to work quite right.

I can get the thumbs to appear and link to the larger image, but the only way of doing that is if I add my own line of code and remove the imgsrc.php file from use. And I don't want to do this.

For some reason it isn't catching the

php Code:
Original - php Code
  1.  
  2. print('<img src="imgsrc.php?src='
  3.                             .PATH.rawurlencode($uri).$image.'" border="0"  >');


Instead I end up with nothing but blank spaces, however if I were to add a width and height element, I would get the image box (broken) and further the properties would give me the correct image path. Plus, when I added:

php Code:
Original - php Code
  1.  
  2. echo "<img src=".PATH.rawurlencode($uri).$image." border='1' width='100' height='100'>";


I could see my image.

So I'm rather confused, why isn't it linking to the imgsrc.php file?

Thanks in advanced. :0)

Reply With Quote
  #2  
Old November 7th, 2003, 02:25 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

oh and if you want to take a look
here is the address:
http://tayhawk.com/Doors/images.php

Reply With Quote
  #3  
Old November 7th, 2003, 03:13 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Creating an Image Gallery Tutorial Problem

hm.. just a guess here but do you have any periods in your main PATH (in config.php)? cause that's supposed to be the full server path to your directory and shouldn't contain any periods.

i'm noticing that the path being sent to your imgsrc.php contains a period and that's probably what is throwing it off.

Reply With Quote
  #4  
Old November 7th, 2003, 06:32 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

Ok... I was using a period I had this:

php Code:
Original - php Code
  1.  
  2. define('PATH', './gallery/');


So I replaced it with the entire directory path, but
then I kept getting 'invalid request'.

So Now it is:

php Code:
Original - php Code
  1.  
  2. define('PATH', 'gallery/');


But I'm back to the same problem.

The images only show up without the imgsrc.php

I tried putting echo "hello"; Into the second line of imgsrc.php but even that will not show up.

Any other ideas?

Reply With Quote
  #5  
Old November 7th, 2003, 06:39 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Creating an Image Gallery Tutorial Problem

make sure you have a leading slash, and that you're using the FULL path, it should be:
php Code:
Original - php Code
  1. define('PATH', '/full/server/path/gallery/');
that should solve the problem

Reply With Quote
  #6  
Old November 7th, 2003, 07:12 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

I don't understand.

My full path would be this:


'http://tayhawk.com/public/Doors/gallery/'

or

ftp://tayhawk.com@ftp.tayhawk.com/public/Doors/gallery/


Reply With Quote
  #7  
Old November 7th, 2003, 07:45 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Creating an Image Gallery Tutorial Problem

the server address can be found within your phpinfo() page.. it'd probably look something like this

/home3/tayhawk/public_html/doors/gallery/

if you can't find it, just link me your phpinfo() page and i'll find it for you

Reply With Quote
  #8  
Old November 10th, 2003, 07:06 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

thanks, I got it finally!
Was all warped because of my hosting company.

They like to keep things secret eh?

;)

Reply With Quote
  #9  
Old November 10th, 2003, 07:26 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

Ok now I am totally fustrated.

The path they gave me is not working.

AND I can't find it in phpinfo.

I am not getting an error message with their path which was
/services/webpages/t/a/tayhawk.com/public/Doors/gallery/
but it's not showing the images either

phpinfo page is now here:
http://tayhawk.com/Doors/phpinfo.php

Hope you can help, I give up.

Reply With Quote
  #10  
Old November 10th, 2003, 07:39 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Creating an Image Gallery Tutorial Problem

hmm.. well, that should be it:
/services/webpages/t/a/tayhawk.com/public/Doors/gallery/

what are the permissions on this folder? since imgsrc.php has the correct path, you may want to force some error checking to see where the problem is exactly.. my assumption is that for some reason, the following line in imgsrc.php doesn't think the file exists
php Code:
Original - php Code
  1.  
  2. if(isset($src) && file_exists($src))

it might be a permissions issue

Reply With Quote
  #11  
Old November 10th, 2003, 08:08 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Creating an Image Gallery Tutorial Problem

also, i'm noticing the links to the larger images is working.. looks like the code displaying the thumbnails might have been altered during the troubleshooting. which makes me think it's not a permissions issue.

you might try using the original un-altered code, to start from scratch, now that you have the correct path for the config file..

Reply With Quote
  #12  
Old November 10th, 2003, 08:12 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

I really did cut and paste the code, but I'll try again tonight and see if it works, for now I'm just too fustrated and taking a break.

Thanks though, I'll let you know if it works out tomorrow!

It is a great tutorial if it would just work for me. ha

Reply With Quote
  #13  
Old November 12th, 2003, 05:47 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: Creating an Image Gallery Tutorial Problem

Ok
So I've checked over my coding

I've rechecked the coding.

I have the path in as should be.

I've reviewed phpinfo

NOTHING.

I am STILL having the same problem after two days.

I even cut and pasted the code directly from the tutorial.

I don't understand what is going on.

Incredibly fustrated now. Does anyone know WHY it won't work?

Reply With Quote
  #14  
Old November 12th, 2003, 06:17 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Creating an Image Gallery Tutorial Problem

there's no reason i can think of why it wouldn't be working. if you want, feel free to message me on aim or yahoo anytime after 8pm CST and i will help you troubleshoot until the problem is solved.

my only other suggestion would be to add your own error checking, so you can figure out which portion of the code exactly is causing the problem, or whether it has something to do with the server configuration.

i'm sorry that this is frustrating you, because of the fact that it's my code i really would like to help you figure out what the problem is.

Reply With Quote
  #15  
Old November 12th, 2003, 06:40 PM
myraleen myraleen is offline