Re: Strange_session-problem_with_php- file_in_<img_src…

From: Date: Fri, 31 Jan 2003 17:27:09 +0000
Subject: Re: Strange_session-problem_with_php- file_in_<img_src…
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133810@lists.php.net to get a copy of this message
fredagen den 31 januari 2003 kl 18.08 skrev Chris Shiflett:
Instead of trying to tell us what the problem is, just explain what trouble you are having. We can then tell *you* what the problem is.
Ok, first I have the function session_start(); function return_session_raettighet($session = null) { if ( isset($session) ) { return $session; } else { return 0; } } I ask this function to return the value of a specifik session, that is, if the user is logged in the value is at least 10. Then I perform if(return_session_raettighet($HTTP_SESSION_VARS["session_raettighet"]) < 10) { ImageAlphaBlending($img_des, true); $im_copy = imagecreatefrompng(const_picture_dir . "/copyright.png"); $copy_imgsize = GetImageSize(const_picture_dir . "/copyright.png"); $copyxloc = (($imgwidth + (2*$kant))/2)-($copy_imgsize[0]/2); $copyyloc = (($imgheight + (2*$kant))/2)-($copy_imgsize[1]/2); imagecopy($img_des, $im_copy,$copyxloc,$copyyloc,0,0,$copy_imgsize[0], $copy_imgsize[1]); } this means, that if the user is not logged in, a copyright © sign will appear over the image. And this fails… Don't know why because the same code works on other pages… Sincerely Victorr

« previous php.general (#133810) next »