Skip to main content
Gary Sprung
Known Participant
June 24, 2011
Question

Dreamweaver runs PHP code while downloading file

  • June 24, 2011
  • 1 reply
  • 1582 views

When I want to download a PHP file from my testing server to my local directory, Dreamweaver CS5 runs the PHP code and delivers a file with the data from the database rather than the PHP code. How do I get Dreamweaver to just give me the code? (I'm trying to revert from the uploaded file to what I have locally.)

Thanks,

Gary

This topic has been closed for replies.

1 reply

June 24, 2011

If I understand you, use dreamweaver and go to the testing server and "Get" the file.  It should be copied to your local folder.  You can also use your operating file system of going to your testing server, usually in the htdocs folder and copy the file and paste it into your local folder.

Gary

Gary Sprung
Known Participant
June 24, 2011

Thanks, but that's not my issue. Those are normal ways to get the file from testing server to local machine. (And, by the way, my testing server is separate  from development machine.)

This issue is that when I do the download, the file I get has the database data, rather than the code that generates that data. It's like the PHP script is being executed before the download occurs. I don't get the original file. I get it's result.

Regards,

Gary

Community Expert
June 24, 2011

Please list the exact steps you take to download the file.