W katalogu glownym stworzylem plik test.php
<?php function LoadJpeg($imgname) { $im = @imagecreatefromjpeg($imgname); /* Attempt to open */ if (!$im) { /* See if it failed */ $im = imagecreatetruecolor(150, 30); /* Create a black image */ $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an errmsg */ imagestring($im, 1, 5, 5, "Error loading $imgname", $tc); } return $im; } $img = LoadJpeg("img.jpg"); imagejpeg($img); ?>
w tym samym katalogu znajduje sie rownież plik img.jpg
Chce aby po wejsciu w adres url http://mojadomena.pl/test.php wyswietlil sie obrazek img.jpg Zamiast tego wyswietla sie adres url skryptu http://mojadomena.pl/test.php
Gdzie tkwi problem bo ten skrypt to chyba najprostrzy z mozliwych a ja nie moge wychwycic bledu
