使用PHP頭功能工作頁面重定向在WordPress插件米頭功能在WordPress插件
我的代碼是
$URL = admin_url('admin.php?page=myaccount&success=yes');
header("location:".$URL);
exit();
它給我的錯誤是這樣的。
警告:不能更改頭信息 - 已經 發送的報頭 (輸出開始 /home/fusionmark/public_html/wp/wp-admin/includes/template.php:1877) /家/ fusionmark /的public_html/WP /可溼性粉劑內容/插件/ JVZoo/includes.php 上線258
你爲什麼使用這個重定向? – sarath
我需要重定向頁面 –
可能的重複[如何解決]已經發送的頭文件「PHP中的錯誤」(http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error- in-php) – Achrome