Forum Moderators: coopster

Message Too Old, No Replies

Bug in Dreamweaver MX

Mis-spelled global variable in dreamweaver MX

         

phparion

7:44 am on Feb 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi

I found a bug / problem in Dreamweaver MX and wanted to share with you guys so if anyone else facing the same problem.

When you use $_SERVER intelli-sence (help dropdown) in dreamweaver it gives you wrong variable-name for REFERRER i.e

$_SERVER['HTTP_REFERRER']; in fact this is grammatically correct but according to PHP it should be with SINGLE 'R' i.e

$_SERVER['HTTP_REFERER'];

It wasted my so much time and finally I found that dreamweaver had lead me to the mis-spelled global variable name. So be aware of this problem in Dreamweaver MX

jatar_k

11:28 am on Feb 17, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



that's a nice catch phparion

another good reason to just hand code it ;)

phparion

12:42 pm on Feb 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



the worse thing is that when you see the intelli-sense you will see right spelling with single R but when you select it an extra R is added automatically..

cmarshall

1:09 pm on Feb 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Heck, I never even knew DW would do it for you, and I've been using DW since Version 3.

I always use BBEdit for PHP coding, with frequent lookups in my local copy of the PHP Manual.