我想打開新的Web頁面來顯示圖像,當我的PHP是創建圖像
PHP:關於開放新的網頁
<?
.........
$img = $file.create_image; // $img like http://abc.com/abc.jpg
header("Location: $img");
?>
在使用頭我,它有一個錯誤
Cannot modify header information - headers already sent by (output....
或使用其他php函數打開新頁面。
你在迴應以前的東西,這就是爲什麼它說頭已經發送。如果回顯中沒有任何東西,= .. ?>或print/print_r,那麼你的php文件上面有一個空行(這就像回聲)。 – Panagiotis