Skip to main content
roberts33286217
Inspiring
July 4, 2017
Answered

2017.5 PHP variable copy and paste

  • July 4, 2017
  • 2 replies
  • 1334 views

When I double click a php variable to highlight it and copy ad paste the '$' part of the variable does not get selected, so the paste creates an error. I had the same problem in the version before 2017 but they fixed it in 2017 and now it's back. Even when clicking and dragging my cursor over a variable name often the '$' does not get selected. Is this a bug?

This topic has been closed for replies.
Correct answer osgood_

This is a known issue or not, according to personal views. I don't know if anything is being done about it or it is what it is:

double click on variables

2 replies

Participating Frequently
July 13, 2017

At least yours works! How do you even get your php to do anything in dreamweaver? And yeah I'm absolutely sure its a dumb question because I only started using this program 2 weeks ago and the only programs I've ever written  before this were for MatLab...

I've been using these two tutorials trying to build a photo gallery (first one to set up a php testing environment because it wasn't working at all, second one is the code I was copying).

Setting up a PHP development environment for Dreamweaver | Adobe Developer Connection

http://html-tuts.com/jquery-image-slider/

Have I missed something super basic? Do I have to tell dreamweaver to download something like when you use a typekit font or should it just understand that I'm writing bits in php? Thanks so much if you are able to help me or recommend an easier solution to get photos to display

Legend
July 13, 2017

lenarigoll  wrote

At least yours works! How do you even get your php to do anything in dreamweaver? And yeah I'm absolutely sure its a dumb question because I only started using this program 2 weeks ago and the only programs I've ever written  before this were for

You havent grasp the concept of php as yet.

1) You need to use a php file extension,  .php rather than .html (That's the easy part).

2) You need a server set up to run php. You can either upload and test your pages on your remote server, as long as its compatible with php or in most cases while in development mode you download a FREE local server, for example  XAMPP, MAMP. Google to find the download pages.

Once installed you create your site folder within the applicable folder inside XAMMP, MAMP - for MAMP its htdocs.

You can then start using php in your website pages and run them via the local server.

Its quite easy once you grasp the basic fundamentals....good luck.

Participating Frequently
July 13, 2017

Thank you! It's the easy part that I have no idea about, the tutorial I was copying is not in Dreamweaver. Does that mean I save a separate document with all the bits of php in it? Or do I save the whole thing as php? Alternatively do you know of somewhere I could learn more about this so I don't have to ask you all these stupid questions?

I will be using MAMP when I get the rest of this figured out, I've downloaded everything and carefully saved it all with the right names in the right folders by the looks of it.

osgood_Correct answer
Legend
July 4, 2017

This is a known issue or not, according to personal views. I don't know if anything is being done about it or it is what it is:

double click on variables

roberts33286217
Inspiring
July 4, 2017

So tempting to mark this as helpful for comedy value.

Legend
July 4, 2017

roberts33286217  wrote

So tempting to mark this as helpful for comedy value.

Yeah <shrug> - I use Php Storm that knows more about php workflow than DW - the $ gets selected, as I would expect.