|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Notepad's image gallery+GD
SYSTEM: winxp, easyphp (apace 1.3, php 4.3.3, mysql 4.xxx)
ME: beginner php Code:
Ok this is the same code which notepad used in his tutorial. I get this error message: Notice: Undefined variable: uri in d:wwwimages.php on line 85 I notice a dot(.) before = ($uri .= !is_numeric...) If I remove it (but this probably is not OK) the error is gone. But then when i click the thumbnail i get: invalid request (i knew it was not OK) Please help me. |
|
#2
|
|||
|
|||
|
RE: Notepad's image gallery+GD
it's just a notice, put an '@' before it:
@$uri .= etc.. kinda weird tho yah, of course it's an undefined variable.. that's why we're defining it |
|
#3
|
|||
|
|||
|
RE: Notepad's image gallery+GD
what does the dot in front of = mean?
|
|
#4
|
|||
|
|||
|
RE: Notepad's image gallery+GD
|
|
#5
|
|||||||||||
|
|||||||||||
|
RE: Notepad's image gallery+GD
thanx 4 the explanations guys.
but now i have another problem. GD library won't display the thumbnails. I can open the images, but the thumbnails aren't there. GD library works fine, i tested it.. this code: php Code:
Outputs a black image saying: "My first Program with GD" I updated php to 4.3.4, apache is v. 1.3 (i use easyphp), and i run winXP (is this the problem). I studied GD library tutorial and studied the code in both images.php and imgsrc.php carefully but i cant find the solution. is there a problem in this line? Notepad u said that .= adds a value to the variable $uri (which is at the time NULL, or am i wrong). So if the value is added how come there is and error undefined variable uri? Sorry for asking so many questions, but i really want to finish this great script, which is BTW exactly what i need, and what i've been looking for for a month here's the code: IMAGES.PHP php Code:
IMGSRC.PHP php Code:
CONFIG.PHP Thanx for the answers in adwance Bojan |
|
#6
|
|||
|
|||
|
RE: Notepad's image gallery+GD
some more things
script is in the folder d:www images are in the folder d:wwwimages(gallery)(image_x.jpg) and here is the url: http://hribo.kicks-***.net/images.php should i set permissions CHMOD 777 on files and how to enable error reporting? |
|
#7
|
|||
|
|||
|
RE: Notepad's image gallery+GD
[Moved to tutorial forum]
|
|
#8
|
|||
|
|||
|
RE: Notepad's image gallery+GD
my script doesn't care for local addresses, it doesn't compensate for the colon i don't think.. someone else is having the same problem with a path similar to yours i'm kinda playin with it. i'll let you know
|
|
#9
|
|||
|
|||
|
RE: Notepad's image gallery+GD
ok...
d:/www/ is my root with all 3 scripts /www/images/ here are the dirs with images this is copy->paste from html view source. <a href="/images.php?nav=%3Ekavka%3E0"><img src="imgsrc.php?src=/www/images/kavka%2Fslika001.jpg" border="0" /></a> is the /www/ supposed to be there? this is the source of the large image, am i right? and also there's an error: undefined variable $uri. is this the problem? i just don't get it... it displays small pics with red x and when i click on any of them it opens picture normally. it just won't display thumbs. is there a possible error in imgsrc.php GRRRRRR.... |
|
#10
|
|||
|
|||
|
RE: Notepad's image gallery+GD
put an @ symbol before the $uri line to get rid of the notice.. there's no problem in imgsrc.php, it just isn't being passed the right path. take a look at this thread for some possible fixes
|
|
#11
|
|||
|
|||
|
RE: Notepad's image gallery+GD
Still NOTHING!!!
DOCUMENT_ROOT = d:/www SERVER_ADDR = 127.0.0.1 /www/gallery/all three scripts here in the same dir /www/gallery/images/ dir pappa with pictures in .jpg format large images are displayed normally, but not thumbs so there must be an error in line what should the line look like? or or just darn php!!! |
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Notepad's image gallery+GD |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|