Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.