1 post
in July - 2006
require_once and includes above connections in Dreamweaver under PHP
Posted Monday, July 10, 2006 12:45:48 PM by Danilo Celic

Dreamweaver adds connection incudes at the top of the file using code similar to the following:
<?php require_once('Connections/localhost.php'); ?>
If you add code above the connection includes using require_once(), or include() and you use single quotes around the file name, then Dreamweaver will mark the Recordsets in the ServerBehaviors panel as broken. If you try to inspect the recordset to fix it, once you click OK, the include is removed (or the first include is removed, if you have more than one include at the top of the page).
FIX: If you switch to using double quotes around the file names, then the recordsets aren't marked as broken, and the require_once() and include() aren't removed, as in the following:
<?php require_once("myinclude.php"); ?>
Category tags: Dreamweaver, Macromedia News
Posted by Danilo Celic
Add comment |
View comments (5) |
Permalink
|
Trackbacks (1)
|
Digg This
1 post
in July - 2006


Blog RSS feed












