Skip to main content
Participating Frequently
August 17, 2020
Question

PHP Temp files execute on server when files are opened!!!!!

  • August 17, 2020
  • 2 replies
  • 12591 views

Every time I open a PHP script on my local machine, a Temp file EXECUTES on the server!  I have "Preview using temp file" OFF.  I "opened" a php script recently in Dreamweaver and the "######_asdfs9eee.php" temp file executed on our server sending out over 1,000 emails.  Obviously it was not my intention to EXCECUTE the script.  Only edit it. 

 

We are running Windows 10, DW version 20.2

 

Until this gets fixed I will not be able to use DW to edit our websites.  Please help.  Thanks!

    This topic has been closed for replies.

    2 replies

    BenPleysier
    Community Expert
    Community Expert
    August 17, 2020

    There are a couple of things that I would like to know, namely

    1. Do you use a version manager and if so, what is the name

    2. What is the gist of the content of the emails

    3, Are the emails sent to known addressees.

     

    In the meantime, do as Nancy suggests, do not upload automatically after a save.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participating Frequently
    August 18, 2020

    Thanks Ben.  I'm going to try to just disable Auto Upload on save. 

    Nancy OShea
    Community Expert
    Community Expert
    August 17, 2020

    I can honestly say I've NEVER had a script execute while I was editing it in DW or any other code editor.  For context, I use Wamp server on my computer's primary hard drive for local testing.  The remote server is on a separate commercial web host.  So whatever happens on the local server cannot possibly impact what's happening on the remote and vice versa.

     

    Nancy O'Shea— Product User & Community Expert
    Participating Frequently
    August 17, 2020

    Thanks again Nancy.  I do realize this is very strange.  I run DW on a local windows 10 pc.  I edit the files "localy" and they upload on save.  When I do this our server log shows a script running with the same file name but the random temp file stuff added on.  It does this every single time. 


    Is there a way to stop the creation of the temp files???  I think that would fix it but the only setting I know of is the "Preview using temp file" setting and that is off.

     

    I will say I think this started happening after we upgraded to 20.2.

     

    I do appreciate your thoughts on this Nancy! 🙂

    Nancy OShea
    Community Expert
    Community Expert
    August 17, 2020

    "I edit the files "locally" and they upload on save. "

    What does that mean exactly?  Do they upload to your testing server on save or do they upload to your remote server on save? 

     

    I discourage uploading files to remote server on save.  Like it or not, it's an open invitation for trouble.

     

     

    Nancy O'Shea— Product User & Community Expert