Welcome to WebmasterWorld Guest from 54.147.63.124

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Dreamweaver MX + PHP

a warning....

     
9:14 pm on Dec 15, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 18, 2002
posts:161
votes: 0


I've had a bitch before about what a piece of garbage I though Dreamweaver MX was, however I've just discovered a delightful "feature" when using it to code in PHP that I thought I share in case anyone else encounters it.

Basically, I got lazy thought I'd use DW to knock up a page, after selecting a PHP document I checked 'Make XHML compliant'.

DW thoughtfully adds the following first line to the document:

<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">";?>

I promptly returned on the opening/closing "?>" tags and began coding:

<?php
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">";
echo 'My code went here';
?>

An hour or so later, after knocking out some neat PHP code, and dudiciously saving every few minutes. I closed the document window, and went to test.....

Nothing.

I opened the document that I'd "saved" to discover the sole line of PHP code:

<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">";?>

Dreamweaver - oh so thoughtfully had decided that my last hour's works was obviously not worth saving - that I didn't really mean it, and as I'd selected 'Make XHML compliant' it obviously knew better.

Needless to say, I have now fully uninstalled this [ insert unprintable derogatory comment/s here ] application, and learnt my lesson!

asp

8:50 am on Dec 16, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


If you had spent about 30 seconds in the preferences panel you could have avoided all that.
9:02 am on Dec 16, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 7, 2001
posts:579
votes: 0


When an application becomes the automatic choice for about 70% of design bureaus, you have to ask "Is it the software or is it me".
6:54 pm on Dec 16, 2002 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


I feel your pain aspr1n, I have had to use DW a few times though, thankfully, not for php ::shudder::.

The only reason I had to use it was the inept coding DW did to the html and it was faster to decode it using DW itself.

I hate it when programs change things for me, no matter if I am wrong or not. Prompt me saying "you big idiot, look what you did" that's fine but not go ahead and change it for me. DW number one major failing, thinks it's smarter than me, it went out the window after the first offense and I can still beat it hands down hand coding. ;)

9:20 am on Dec 17, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT

Guys!

For crying out loud CHECK THE PREFERENCES!

DW does NOT change code unless told do - done via the preferences.

I have done a few PHP sites all using DW and have had no code changed.

Dreamweaver IS a hand coding environment AS WELL AS a visual design tool!

RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT RANT

9:30 am on Dec 17, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 18, 2002
posts:161
votes: 0


knighty,

jatar_k is right - inform me, don't just assume I'm stupid!

As for the preferences - those would be the preferences where it said:

"Never re-write code with extentions:
asr .asc .asp .ascx .asmx .aspx .cfc .cfm .cfml .config .cs .ihtml .js .jsp .php .php3 .vb .xml .xul"

I can see how Dreamweaver might be confused over something as conceptually complex as that ;)

asp

10:26 am on Dec 17, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


aspr1n,

I'm not assuming you're stupid - far from it, which is why I don't understand why people fail to familiarise themselves with a product before dismissing it as useless.

I know DW is'nt everyones cup of tea but just because someone does'nt use it properly does not mean its a crap piece of software.

As for being warned about the code yeah I agree they should alert you that stuff is being changed but this hardly equals software ejection out of the window. ;)

10:43 am on Dec 17, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 18, 2002
posts:161
votes: 0


Sorry knighty - didn't mean to suggest you did ;)

Dreamweaver 4 IMO was the best thing since sliced bread - it's MX I have a problem with. It gets its CSS box model wrong - can't understand basic CSS - like a remark, it totally doesn't understand the IE CSS box model hack, produces swathes of PHP code much of which has been depreciated - $GET_HTTP_VARS being one of them, crashes like I have never had an application crash before, and loads of other stuff.

That's why I think MX is a waste of space - they took DW4 which saved me time and money and turned it to something that wastes it beacause of the clearing up after it.

It's like looking after a 5 year old child - always has the best intentions but somehow always manages to wee up the wall, and drop that bottle of milk on the floor.

asp

11:18 am on Dec 17, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2001
posts:690
votes: 0


I'm just getting in to PHP and although I use DWMX to code PHP I don't use the Application panel.

CSS has been fine so far but to be honest I have'nt used 90% of the "new features" like snippets etc.

Actually one thing has been bugging me about DW MX I use cookies to detect user levels and then re-direct with location {} - sometimes if I preview in NN4 it shows a wierd >>? type character and get an error that headers have already been set.

Anyone else experienced this? If I save in notepad using EXACTLY the same code - no probs at all, even works when i re-open same doc in DW.

2:29 pm on Dec 17, 2002 (gmt 0)

Full Member

10+ Year Member

joined:July 30, 2002
posts:273
votes: 0


If you don't like DWMX why don't you try Codecharge.
Personally I think DWMX is a very good tool beside its habit
of crashing every now and again. I use it to code in asp, but I'm only starting to use it with php.
7:03 pm on Dec 17, 2002 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


shows a wierd >>? type character

if this character is spit out before the location call it will cause the header already sent error. If you can lock down where it is coming from you can either stop it or try putting a @ before the offending function to suppress errors (I think it is the @ symbol).

As for DW, I'm a hand coder, I have no interest in being anything else, so you can imagine the stretch it would take for me to use DW. The times I have used it have been on "pro" long time DW users/coders cpu's because they couldn't fix something because DW wouldn't let them.

This has been with the don't change my code on my pain of death settings going. DW, in these instances, still made some small changes that were causing problems. It was confused. These were setup properly and the people using them were very familiar with their settings.

So at any rate, to DW's credit it was the last wysiwyg to go out the window but out it went all the same. ;)

10:18 pm on Dec 17, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Apr 4, 2002
posts:236
votes: 0


I went back DW4 after trying MX
10:35 pm on Dec 17, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 26, 2002
posts:402
votes: 0


I'll second that. MX crashed on me half a dozen times before I returned to Dreamweaver 4.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members