Who You Calling A Jesse?

Trying to sort the brilliant ideas from the lesser ones.

Contribute is eating my PHP

Posted by Jesse Rodgers on January 12, 2006 at 04:05 PM

If you are using Dreamweaver templates (DWT) that have PHP extensions in Contribute you might have noticed something really annoying: Contribute 3 is not managing your links inside the PHP. I am not entirely sure the extent of the problem but where it really annoys me is with PHP includes. Say you have:

php include(”../includes/UWheader.html”);

In your DWT this makes perfect sense and Dreamweaver 8 and MX 2004 has no problem managing that. If you have a new file from template created in the parent directory you get:

php include(“includes/UWheader.html”);

But if you create a file in Contribute 3 from the DWT.php it doesn’t do anything. It just leaves the original path. What you are left with is a broken include. To work around you need to put the full path to your include in your template but then you have another problem with rendering when you drop this in your include:

php include(“http://yoursite.com/includes/UWheader.html”);

Dreamweaver 8 has no problem with this as it will render it for you but Contribute 3, well Contribute won’t render the includes in render mode (edit mode) either. Which is nuts considering it renders it fine in the browser mode.

Anyone else notice annoyances with Contribute 3 and PHP?

Tags: Adobe
Hierarchy: previous, next