Title: problem writing a plugin
Last modified: August 19, 2016

---

# problem writing a plugin

 *  [bhartigurav](https://wordpress.org/support/users/bhartigurav/)
 * (@bhartigurav)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/problem-writing-a-plugin/)
 * 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)

 *  [rsciw](https://wordpress.org/support/users/rsciw/)
 * (@rsciw)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/problem-writing-a-plugin/#post-1188381)
 * 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.

 * 1 reply
 * 2 participants
 * Last reply from: [rsciw](https://wordpress.org/support/users/rsciw/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/problem-writing-a-plugin/#post-1188381)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
