Title: Posting PHP
Last modified: August 18, 2016

---

# Posting PHP

 *  [jbillouin](https://wordpress.org/support/users/jbillouin/)
 * (@jbillouin)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/posting-php/)
 * Hello, i am new to WordPress.
    It seems like Great stuff, however I do have one
   problem. I have a Poll script that I would like to use in some posts. The script
   for this is <?php idiopoll(); ?> and It won’t work if i try to post it. I have
   used search and found three different methods, none work and the most recommended
   one ( [http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/](http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/))
   just brings up an error page when I try and save the post reading . ‘Warning:
   Cannot modify header information – headers already sent by (output started at/
   home/sites/site216/web/wp-content/plugins/runphp.php:45) in /home/sites/site216/
   web/wp-admin/post.php on line 340’ Does anyone have any recommendations? Thanks,
   James.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * (@markjaquith)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/posting-php/#post-93738)
 * Check the runphp.php file, and ensure that you do not have any spaces before 
   the leading <?php or any spaces after the ending ?>
    Any spaces there will get
   sent as output to the browser, preventing WordPress from sending its own headers.
 *  [Norbert](https://wordpress.org/support/users/norbert/)
 * (@norbert)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/posting-php/#post-93945)
 * Hi,
    thx for this software !! There’s just one little thing, I cannot figure 
   it out how to make posts with lots of whitespaces. Let’s say, I want to post 
   some source code. How can this be done ? Norbert

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Posting PHP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Norbert](https://wordpress.org/support/users/norbert/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/posting-php/#post-93945)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
