Skip to main content
Participant
September 21, 2010
Question

Server Behaviours not allowed in .php file?

  • September 21, 2010
  • 2 replies
  • 425 views

Hi,

I've only recently made the jump from 'ugh, I'm a designer I don't need to know' to 'fine, this coding lark seems to be important' so this may be an exceptionally dim question. Apologies in advance if I've overlooked something obvious

I am trying to build a very basic dynamic website, losely based on the steps outlined by David Power here http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html. My own design but otherwise I'm not straying from the instructions given.

No problems developing the back end but when I came to displaying content from the database on the news page dreamweaver will not allow server behaviours to be selected (the little "+" button is greyed out in server behaviours and bindings but not for databases, if that's relevant). I haven't changed any settings or permissions and despite spending several hours poking around I don't really understand the problem enough to recognise the solution if I find it.

I am using Dreamweaver CS4 on Windows Vista

Any suggestions would be gratefully recieved.

This topic has been closed for replies.

2 replies

September 24, 2010

First thing to look for is whether you are using the proper file extension - php. Dreamweaver won't respond to your wishes otherwise.

Brad Lawryk
Legend
September 24, 2010

So you have the back end built, I assume you mean the insert, edit and delete forms for the data?

Now you are trying to display that data on a front end page? Can you explain the steps you are taking?

A very common problem for that would be not having a server type specified in your site definitions or possibly have Dreamweaver in 'Live View' mode.

Brad Lawryk

Adobe Community Professional: Dreamweaver

Northern British Columbia Adobe Usergroup: Manager

Thompson Rivers University: Dreamweaver Instructor

My Adobe Blog: http://blog.lawryk.com

CiardubhAuthor
Participant
October 1, 2010

The insert, edit and delete forms for the data are built, correct

Now I am trying to display the data on the front end. I haven't taken many steps simply because I cannot. If, for example, edit_post.php is open the "+" sign on the server behaviours panel is black but as soon as I open index.php it greys out. The next step I'm trying to take is add a server behaviour to the div that will contain updates.

As all the pages are in the one site the site definition for both the functioning and non-functioning php files is the same. They were all created as php files and end .php. Live view is off.