croakingtoad
01-04-2004, 10:27 PM
Hey, I designed a new layout for a site in a folder like this:
http://www.lewisgaleclinic.com/en/doctors.php
That version works fine, check it out.
Now, I backed up the directory structure one level like this:
http://www.lewisgaleclinic.com/doctors.php
That version, same file mind you, now does not work. Check it out. What in the world is the problem? I used relative file names so I wouldn't have this problem.
Here's the source:
<?php
include("./main/config.inc");
// Display the Physicians page (Practice Areas)
$sRootPath = '..';
require("$sRootPath/shared/cdbpracticeareas.php");
$PracticeAreas = new CDBPracticeAreas();
$dbconnect= "my.remote.sqlserver";
$user= "user";
$pass= "pass";
$keywords = "specialties, ";
$subtitle = "Clinical Specialties";
// Adds the html-head code to body tag
include("./main/head.inc");
// Adds the graphical header
include("./main/header.inc");
// Display the list of doctors
// Form parameters: SearchString (optional)
$sRootPath = '..';
require('cdisplaydoc.php');
require("$sRootPath/shared/cdbdoctors.php");
$Doctors = new CDBDoctors();
// Form Inputs
if ($_POST['SearchString']) // input via this form
{
$sSrchFor = $_POST['SearchString'];
}
else
{
$sSrchFor = '';
}
// Adds the main body
include ("./physicians/body.inc");
// Adds the footer
include("./main/footer.inc");
?>
http://www.lewisgaleclinic.com/en/doctors.php
That version works fine, check it out.
Now, I backed up the directory structure one level like this:
http://www.lewisgaleclinic.com/doctors.php
That version, same file mind you, now does not work. Check it out. What in the world is the problem? I used relative file names so I wouldn't have this problem.
Here's the source:
<?php
include("./main/config.inc");
// Display the Physicians page (Practice Areas)
$sRootPath = '..';
require("$sRootPath/shared/cdbpracticeareas.php");
$PracticeAreas = new CDBPracticeAreas();
$dbconnect= "my.remote.sqlserver";
$user= "user";
$pass= "pass";
$keywords = "specialties, ";
$subtitle = "Clinical Specialties";
// Adds the html-head code to body tag
include("./main/head.inc");
// Adds the graphical header
include("./main/header.inc");
// Display the list of doctors
// Form parameters: SearchString (optional)
$sRootPath = '..';
require('cdisplaydoc.php');
require("$sRootPath/shared/cdbdoctors.php");
$Doctors = new CDBDoctors();
// Form Inputs
if ($_POST['SearchString']) // input via this form
{
$sSrchFor = $_POST['SearchString'];
}
else
{
$sSrchFor = '';
}
// Adds the main body
include ("./physicians/body.inc");
// Adds the footer
include("./main/footer.inc");
?>
