Title: BUG &#8211; Additional PHP Files executed before copy
Last modified: July 25, 2023

---

# BUG – Additional PHP Files executed before copy

 *  Resolved [pdelisle](https://wordpress.org/support/users/pdelisle/)
 * (@pdelisle)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/bug-additional-php-files-executed-before-copy/)
 * I have a folder at the same level as wp-admin et al containing a PHP script which
   is called by a form in my site. This folder is referenced in the Additional Files
   and Directories textbox.
   When generating the static site, Simply Static is running
   my script file rather than just copying it as is. There is a PHP file with the
   same name as my script in the static sites folder, but it contains the HTML output
   of the script rather than the script itself.
 * This behaviour has existed in v2 and now v3
 * HTH

Viewing 1 replies (of 1 total)

 *  Plugin Support [sr293](https://wordpress.org/support/users/sr293/)
 * (@sr293)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/bug-additional-php-files-executed-before-copy/#post-16924791)
 * Hello [@pdelisle](https://wordpress.org/support/users/pdelisle/). Is it correct
   to say that you are creating a static version of your site but you would like
   to include a raw unparsed PHP file with your export? When you add an item to 
   the “additional files” option in Simply Static, this is instructing the exporter
   to visit and parse that resource. You may want to explore using a code snippet
   to copy this file over to the static export directory after the export has finished,
   for example using the ‘ss_after_cleanup’ action. Here is a link to more information
   about this action: [https://simplystatic.com/docs/code-snippets/#Fire-webhook-after-static-export](https://simplystatic.com/docs/code-snippets/#Fire-webhook-after-static-export)

Viewing 1 replies (of 1 total)

The topic ‘BUG – Additional PHP Files executed before copy’ is closed to new replies.

 * ![](https://ps.w.org/simply-static/assets/icon-256x256.png?rev=2443263)
 * [Simply Static - The Static Site Generator](https://wordpress.org/plugins/simply-static/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-static/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-static/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-static/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-static/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-static/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [sr293](https://wordpress.org/support/users/sr293/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/bug-additional-php-files-executed-before-copy/#post-16924791)
 * Status: resolved