|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#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:
|