Title: [Plugin: PHP Execution] Avoid PHP script rerun on refresh
Last modified: August 19, 2016

---

# [Plugin: PHP Execution] Avoid PHP script rerun on refresh

 *  [blevins](https://wordpress.org/support/users/blevins/)
 * (@blevins)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-php-execution-avoid-php-script-rerun-on-refresh/)
 * I have a PHP code that pick random quotes from an array and, thanks to PHP Execution,
   displays result in a post.
    I would like the script to run just once (when i 
   publish the post), and not to update with a new random quote on page refresh –
   i would like that the quote picked stayed in post and archive without changing
   at every refresh. Can somebody help me with this?
 * PS I’m a beginner with PHP 😛

The topic ‘[Plugin: PHP Execution] Avoid PHP script rerun on refresh’ is closed 
to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [blevins](https://wordpress.org/support/users/blevins/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-php-execution-avoid-php-script-rerun-on-refresh/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
