function.mkdir problem
Archived from the Xataface Users forum.
Wolverine — Wed Oct 24, 2007 7:53 am
Warning: mkdir() [function.mkdir]: Invalid argument in D:\WebSites\auction\dataface\Dataface\Application.php on line 556
Does anyone now how to fix this?
On my test system it works fine.
OS : Windows XP Pro.
Apache 2.2.6 (Win32)
PHP 5.2.4
THX
shannah — Wed Oct 24, 2007 8:05 am
This occurs when dataface is trying to make a subdirectory to store its session files. Likely it doesn’t have write permission to the sesson save directory.
You can explicitly set the session save directory to some other directory by addying the following to the beginning of your index.php file:
- Code: Select all
session_save_path('/path/to/directory');
-Steve
Wolverine — Wed Oct 24, 2007 11:16 pm
[quote=”shannah”]This occurs when dataface is trying to make a subdirectory to store its session files. Likely it doesn’t have write permission to the sesson save directory.
You can explicitly set the session save directory to some other directory by addying the following to the beginning of your index.php file:
- Code: Select all
session_save_path('/path/to/directory');
-Steve
stevie — Wed Nov 21, 2007 8:23 am
I had exactly the same problem, but Steve Hannah’s advice worked perfectly for me.
I added this line to the beginning of my index.php file:
- Code: Select all
session_save_path('/intranet/dataface/tmp');
And I created a “tmp” directory in my dataface directory.
BTW, my environment is also Windows, but in my case it’s Server 2003, and I’m running IIS with PHP 5.2.0. -Steve