
Wiec oto czesc pliku z ksiazki "PHP5, Apache i MySQL od podstaw" strona 227, skrypt pliku check_image.php
<?php $newthumbname = $imageThumb.$lastpicid.".jpg"; //pobierz wymiary miniaturki $thumb_width = $width*0.10; $thumb_height = $height*0.10; //utwórz miniaturke $largeimage = imagecreatefromjpeg($newfilename); $thumb = imagecreatetruecolor($thumb_width, $thumb_height); imagecopyresampled($thumb, $largeimage, 0,0,0,0, $thumb_width, $thumb_height, $width, $height); imagejpeg($thumb, $newthumb); imagedestroy($largeimage); imagedestroy($thumb); $url = "location: showimage.php?id=" . $lastpicid; } ?>
Ktora generuje błąd ze header juz został wysłany....jak sobie z tym poradzic ?
Probowalem napisac funkcje ktora przypisuje adres $url a nastepnei zwraca header($url) ale zwrocilo ten sam błąd tylko ze w innej linijce, ja zdaje sobie sprawe ze nie powinno byc nic przed header ale jak sobie z tym poradzic zeby nie zaburzyc pracy skryptu ?