Jump to content

Change Variable name and all instances


Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/224177-change-variable-name-and-all-instances/
Share on other sites

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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.