OK, weird problem. Hopefully it’s something easy and that I’m just missing it.
I have the beginnings of a new PHP page being developed in Dreamweaver. In it I make references to 3 include files, 2 of them being required_once.
DW recognizes the include code and list the files along the top after “source code”, however, when I try to view the code by clicking on their names at the top, I get “‘file’ is not on the local disk. Nor will DW recognize any code inside these include files.
And, yes, I have verified several times that the folders are spelled right and where the root directory is.
Also, it doesn’t happen on every page. Other pages in the same directory, with the exact same includes, work fine.
Any ideas?
<?php require_once('/connections/TECA_DB.php'); ?>
<?php require_once('/connections/temp.php'); ?>
<?php include("/includes/header.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
it shouldn’t matter, but try adding “.” in front of your first slash, in case it isn’t specified in your include path.
and ensure all files are saved so it knows where the relativity exists.