Title: Random PHP include for flash header
Last modified: August 19, 2016

---

# Random PHP include for flash header

 *  [cyberworm](https://wordpress.org/support/users/cyberworm/)
 * (@cyberworm)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/random-php-include-for-flash-header/)
 * Howdy.
 * I’m trying to add a random flash header into a site.
 * There’s one of two ways I am thinking this would work….
 *  One way would be to create multiple php pages to incorporate all of the necessary
   flash scripting and links and then have a php_include in the header.php to a 
   choice of those pages to incorporate into the header.
 * The other, would be to leave all of the scripting for the flash element in place
   and put some sort of variable inside the script (that defines the source) to 
   call a random flash file. I’m just not sure that I can put a php variable inside
   the javascript without breaking it.
 * Could someone give me some advice as to which way (or another way) that would
   be appropriate and a link to sample code or a point in the right direction that
   could help me figure this out?

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

 *  [xdesi](https://wordpress.org/support/users/xdesi/)
 * (@xdesi)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/random-php-include-for-flash-header/#post-855550)
 * I would just find an simple ad rotating script, or for something more extravagent
   phpAdsNew which can be used to rotate ads around and display randomly.
 * Then you just shove the code in your header.
 *  Thread Starter [cyberworm](https://wordpress.org/support/users/cyberworm/)
 * (@cyberworm)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/random-php-include-for-flash-header/#post-855719)
 * Thanks. I guess that is another option I hadn’t considered.
 * I’d still like to know if either of the ways I mentioned are valid though, so
   I could try to create my own. I was looking at some of the image rotation scripts
   that are out there and was thinking that one of those might work to control the
   random php page (with some modification).

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

The topic ‘Random PHP include for flash header’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [cyberworm](https://wordpress.org/support/users/cyberworm/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/random-php-include-for-flash-header/#post-855719)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
