Community Support for OpenDocMan (Deprecated)
DataDir Problem - Printable Version

+- Community Support for OpenDocMan (Deprecated) (
+-- Forum: OpenDocMan Community Discussion (
+--- Forum: OpenDocMan Support - Community Based (
+--- Thread: DataDir Problem (/thread-130.html)

DataDir Problem - Stephen - 01-13-2010

2007-05-13 03:32:05 PDT
Am trying to install on my local machine for testing purposes.

I get the initial datadir error message but cannot work out the fix.

Here is the section of config.php.

// Uncomment this one for Windows - Don't forget the trailing backslash "\"
'dataDir' => 'c:\document_repository\',
// Uncomment this one for Linux - Don't forget the trailing slash "/"
// 'dataDir' => '/var/www/document_repository/',

Using this I get the message

Parse error: syntax error, unexpected T_STRING, expecting ')' in M:\wamp\www\opendocman\config.php on line 83

I have checked and rechecked everything and cannto work out where the indicated missing ')' should be.

Appreciate any suggestions


2007-05-14 01:08:05 PDT
I had the same problem.

Actually the solution was to write / instead of \:

Best Regards

2007-05-14 09:30:01 PDT

Is this a bug? I had added the "\" comment to the config file for windows users (which I am not). Should I change the comment to "Dont forget the "/" slash" ?

2007-05-14 10:35:22 PDT
probably it is not a bug.
I had no experience with php before, but I saw this is the way to set paths in perl under windows so I think this was the same for php.
And I would say it is: 'c:/level1/level2/..3/'

Best Regards