• Resolved pdelisle

    (@pdelisle)


    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

    (@sr293)

    Hello @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

Viewing 1 replies (of 1 total)

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