Dreamweaver PHP OOP Display Issue
development June 19th, 2009
Dreamweaver, thou hast failed me agian. As if your multiple, daily, unexplained, unrelated crashes weren’t enough, now you want to tell me you don’t understand object oriented PHP code?
This blew my mind for a while. I had a piece of code that looked like:
$gdi["header"] = username($update->username) . ' u.......
in a php include file. For some reason, Dreamweaver decided to interpret the “->” in my object as a “?>” when in design view. Now, I very rarely use design view, but I’d seen this happen enough that it bugged me. The internet was no help, as those search terms most often relate to something different.
Today it struck me. Even though the closing “?>” tag is optional for PHP files, and is even recommended against by many to alleviate the issue of extra white space, Dreamweaver gets confused. Once I threw a closing tag in my document, Dreamweaver confirmed that there was, in fact, no html in my file.
And now I can sleep easy. (and go back and remove my closing tags. I don’t give a shit what Dreamweaver thinks)
Edit: 12-17-2009 And now I sleep even easier, because I haven’t opened Dreamweaver for over 4 months. I feel like it’s a bigger accomplishment than beating alcoholism. (Not really. No hate mail please)
Tags: dreamweaver, oop, php, tips
Exclude certain file types from FTP operations
development January 30th, 2008
I put a challenge out there a few weeks ago, and it was not met. I however, stumbled on it myself.
I was trying to “get” an entire site to my local hard drive, but didn’t need to download any of the images, or any of the temp files… and so on. I gave up, scrapped my original plan, and had to come up with a new one. I wish I had found this before…
“Cloaking”, in Dreamweaver, allows you to exclude certain files and folders, and even file types, from all site operations. It was right there, right in front of my face, the entire time. If you want to exclude a certain folder, or a certain file from normal site operations, just right click on it in the file view, select cloaking, and click “Cloak”. Done. It will be ignored.
In your “Site Options”, you have the option to specify certain file types to always cloak. (You can specifically allow certain files and folders later). Make sure you’re in the advanced view, and on the left hand side is a menu for Cloaking.
Thats it. It is something so easy, that I didn’t look right in front of my face, and instead went scouring over the internet trying to find a plugin, or some trick, or some separate program… It wasn’t talked about, because apparently nobody else on the internet is quite as blind as myself.
Touchè, internets.
Tags: dreamweaver, ftp, tips
5 bucks to a Dreamweaver or FTP client guru!
B2B, development December 28th, 2007
I’m having a small problem doing what I want, and the first person to figure it out gets 5 bucks paypal from me, instantly!
I have a website that I want to add google tracking code to, and Dreamweavers handy “find and replace in all files” feature can do just that for me… however, i don’t have all the files on my local hard drive. I want to download ONLY the htm, html, and php files from the site. I can “get” the entire site, no problem, but there is so much extra data, that I don’t feel like killing my internet connection for 3 hours downloading everything.
Anyone who can tell me how to just download all files of a type from a site, gets five bucks via paypal. Thank you in advance.
Tags: dreamweaver, ftp, rant
