Page 1 of 1

add pictures to .............

Posted: Wed Mar 10, 2004 8:22 am
by sashy
what does this mean?

copy($Pic["tmp_name"], "bilder/".$Namn."_".$Pic["name"]);
$_SESSION["WhosPic"]="bilder/".$Namn."_".$Pic["name"];

Posted: Wed Mar 10, 2004 8:37 am
by qads
copy($Pic["tmp_name"], "bilder/".$Namn."_".$Pic["name"]);

means "copy $pic file to "bilder" folder $namn as name.

$_SESSION["WhosPic"]="bilder/".$Namn."_".$Pic["name"];

is a session var, it prolly is used somewhere else in the script or the site.

Posted: Wed Mar 10, 2004 9:21 am
by sashy
well thanks=) but when we try to load up a pic, we get the following error message:

Warning: copy(bilder/sashy_silverright2.jpg): failed to open stream: Permission denied in /home/web0231/public_html/GESTBOK/hanteraAndra.php on line 98


Could u pls help us understand this.....
:roll:

Posted: Wed Mar 10, 2004 2:18 pm
by qads
just make sure bilder folder is there, if its not make it.

also, chmod it to 0777, most ftp progs can do this.