Title: Inserting an external website php script
Last modified: August 20, 2016

---

# Inserting an external website php script

 *  [Meeker](https://wordpress.org/support/users/meeker/)
 * (@meeker)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/)
 * Hi there,
 * I want to know how to insert a php script from an external website into mine.
   I thought this would work, but it doesn’t.
 * <?php include (require(‘[http://www.example.com/example.php&#8217](http://www.example.com/example.php&#8217););?
   >
 * Any ideas? Thanks…

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583444)
 * Include and require? You just need either.
 *  Thread Starter [Meeker](https://wordpress.org/support/users/meeker/)
 * (@meeker)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583449)
 * I have discovered that the post strips out the php code, so I am trying out the
   plugin [http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages](http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages).
 *  Thread Starter [Meeker](https://wordpress.org/support/users/meeker/)
 * (@meeker)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583454)
 * Hmmm, that did not work. The plugin was installed, but I still could not include
   that external code. Any ideas?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583456)
 * “Did not work”, sorry, what testing method are you using to check whether it’s
   working?
 *  Thread Starter [Meeker](https://wordpress.org/support/users/meeker/)
 * (@meeker)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583458)
 * Ok I am inserting the code into the post, e.g.
    [php] require(‘[http://www.example.com/example.php&#8217](http://www.example.com/example.php&#8217););[/
   php]
 * Saving, then going to the frontend, refreshing and then checking the source code.
   It is still stripped out from the post.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583459)
 * Write this;
 *     ```
       [php] var_dump(require('http://www.example.com/example.php'));exit;  [/php]
       ```
   
 * And see whether it returns true or false;
 *  Thread Starter [Meeker](https://wordpress.org/support/users/meeker/)
 * (@meeker)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583461)
 * Thanks for the efforts, it didnt work.

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

The topic ‘Inserting an external website php script’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Meeker](https://wordpress.org/support/users/meeker/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/inserting-an-external-website-php-script/#post-3583461)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
