Skip to main content
Participant
February 17, 2010
Question

PHP Code disappearing

  • February 17, 2010
  • 1 reply
  • 339 views

Hi

My DW CS4 has started to not show php includes in the code view (or design view for that matter!)

They take this form usually -

 

      <?php include($_SERVER['DOCUMENT_ROOT'].'/php-include/nav-left.php'); ?>

However, they are all missing! Is there a setting that has inadvertently changed?

Thanks

Graham

   

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
February 17, 2010

Dreamweaver is not capable of interpreting $_SERVER['DOCUMENT_ROOT']. You need to use document-relative links for include files.