Jump to content

Include problem with virtual directory


njfrese

Recommended Posts

I have a virtual directory set up and some code in an include file can't seem to locate it. The php file and the include file below are in the root directory (i.e., C:\theRoot) of the site. The virtual directory is in a parallel directory on the server (i.e., C:\thedirectory) virtually called "jobs". The include code looks like this:

 

<?php

switch($_GET['page']) {

case "home":

include("about.php");

break;

 

case "autocad":

include("jobs/autocad.php");

break;

}

?>

 

"jobs" is actually a virtual directory that points to that parallel directory mentioned above (i.e., C:\thedirectory). Any idea why the include can't "see" that virtual directory?

Link to comment
https://forums.phpfreaks.com/topic/139251-include-problem-with-virtual-directory/
Share on other sites

Unfortunately, this doesn't work, either. I had tried it previously and just tried it again to be sure. The about.php file is located in the root directly, so that is fine as is and works perfectly. But when I try to use the virtual directory "jobs", no go.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.