Title: PHP in post
Last modified: August 20, 2016

---

# PHP in post

 *  [Cromiell](https://wordpress.org/support/users/cromiell/)
 * (@cromiell)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/php-in-post-2/)
 * I have installed plugin called Exec-PHP
 * I try to execute the following code:
 * _[[code moderated – please use the pastebin](http://codex.wordpress.org/Forum_Welcome#Posting_Code)]_
 * It says I have fatal error on line 7:
    “Fatal error: Cannot redeclare format_time()(
   previously declared in /home2/nascarad/public_html/wordpress/wp-content/plugins/
   exec-php/includes/runtime.php(42) : eval()’d code:2) in /home2/nascarad/public_html/
   wordpress/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code
   on line 7”
 * What’s wrong?

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

 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/php-in-post-2/#post-2566652)
 * The problem is that a function called format_time already exists, so rename it
   to resolve the conflict. Let me know if that’s it and I’ll provide further help
   if not.
 * Har
 *  Thread Starter [Cromiell](https://wordpress.org/support/users/cromiell/)
 * (@cromiell)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/php-in-post-2/#post-2566671)
 * I changed function name to time_interval and there are no errors but instead 
   of it post’s page is totally black (only background).
 * Also on homepage it still says in widget of post that function is already declared
   same error. Even I change name to “blablabla”
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/php-in-post-2/#post-2566694)
 * Do you have a link?

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

The topic ‘PHP in post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Harry](https://wordpress.org/support/users/harmck/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/php-in-post-2/#post-2566694)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
