It's not easy because it's whole Zend Framework, I'll paste important parts:
index.php :
// (...) Hello, I'm Zend Framework gibberish (...)
// Ensure library/ is on include_path
set_include_path(
MAIN_PATH . '/library'
. PATH_SEPARATOR . MAIN_PATH . '/application'
. PATH_SEPARATOR . get_include_path()
);
// (...) Hello, I'm Zend Framework gibberish (...)
And the part that causes the problem:
library/Zend/View/PluginLoader.php (line 360):
public function load($name, $throwExceptions = true)
{
$name = $this->_formatName($name);
if ($this->isLoaded($name)) {
return $this->getClassName($name);
}
if ($this->_useStaticRegistry) {
$registry = self::$_staticPrefixToPaths[$this->_useStaticRegistry];
} else {
$registry = $this->_prefixToPaths;
}
$registry = array_reverse($registry, true);
$found = false;
$classFile = str_replace('_', DIRECTORY_SEPARATOR, $name) . '.php';
$incFile = self::getIncludeFileCache();
foreach ($registry as $prefix => $paths) {
$className = $prefix . $name;
if (class_exists($className, false)) {
$found = true;
break;
}
$paths = array_reverse($paths, true);
foreach ($paths as $path) {
$loadFile = $path . $classFile;
if (Zend_Loader::isReadable($loadFile)) {
include_once $loadFile;
if (class_exists($className, false)) {
if (null !== $incFile) {
self::_appendIncFile($loadFile);
}
$found = true;
break 2;
}
}
}
}
if (!$found) {
if (!$throwExceptions) {
return false;
}
$message = "Plugin by name '$name' was not found in the registry; used paths:";
foreach ($registry as $prefix => $paths) {
$message .= "\n$prefix: " . implode(PATH_SEPARATOR, $paths);
}
require_once 'Zend/Loader/PluginLoader/Exception.php';
throw new Zend_Loader_PluginLoader_Exception($message);
}
if ($this->_useStaticRegistry) {
self::$_staticLoadedPlugins[$this->_useStaticRegistry][$name] = $className;
} else {
$this->_loadedPlugins[$name] = $className;
}
return $className;
}
Output is:
Fatal error: Uncaught exception 'Zend_Exception' with message 'exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'Doctype' in Z:\WebCgiRole1\index.php on line 41
What's most interesting, I just realized that if I'll execute very simple code that I've written by myself a while ago:
<?php
set_include_path(realpath('./include_files').PATH_SEPARATOR.get_include_path());
include('subFolder/included_file.php');
It works on mapped network drive o_O.
But... Exact same Zend Project works perfectly on a regular drive, I can also mention that there are full read/write/execute permissions on every file and directory in the project on a network drive.