President Obama Posted January 12, 2011 Share Posted January 12, 2011 Say I've made a variable called $Hi and I've used it in 4 different documents because it ends up in a session and/or cookie but now I want to change that variable name to $bye and all the instances of it in the 4 documents. Is that possible in dreamweaver? Quote Link to comment https://forums.phpfreaks.com/topic/224177-change-variable-name-and-all-instances/ Share on other sites More sharing options...
Pikachu2000 Posted January 12, 2011 Share Posted January 12, 2011 Never used DW, but there should be a 'Find and Replace' function in one of the menus, I'd imagine. Quote Link to comment https://forums.phpfreaks.com/topic/224177-change-variable-name-and-all-instances/#findComment-1158376 Share on other sites More sharing options...
mreish Posted January 12, 2011 Share Posted January 12, 2011 Yes, close all documents and hit CTRL-F (or command-f), you'll get the find window. Starting at the top: Find In- set this to the folder with all your stuff - your local root folder (now called local site folder) Set Search for - source code Then just type in what you want to replace in the find box and what you want to replace it with in the replace box. You may or may not want to check Match case. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/224177-change-variable-name-and-all-instances/#findComment-1158490 Share on other sites More sharing options...
President Obama Posted January 13, 2011 Author Share Posted January 13, 2011 Dam I thought DW might of had a specific function to find the variable because I could of used that variable name in my body. Oh Well. Quote Link to comment https://forums.phpfreaks.com/topic/224177-change-variable-name-and-all-instances/#findComment-1158744 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.