• hey friends,

    I am writing a plugin which reads remote url. Can anybody read my code n explain wht is the change that i need to make.

    following is the error
    Warning: Cannot modify header information – headers already sent by (output started at E:\xampp\htdocs\id8labs\wp-content\plugins\retrieve-business-data\retrieve-business-data.php:13) in E:\xampp\htdocs\id8labs\wp-content\plugins\retrieve-business-data\retrieve-business-data.php on line 76

    on Line 76 following is the code

    header(“Location: $PHP_SELF”);
    exit();

Viewing 1 replies (of 1 total)
  • you can’t modify the header after an output, i.e. no print, no echo, no javascript or any other forms of output before header(), session_*() etc.

Viewing 1 replies (of 1 total)
  • The topic ‘problem writing a plugin’ is closed to new replies.