note 74892 added to function.opendir

From: Date: Wed, 02 May 2007 18:46:31 +0000
Subject: note 74892 added to function.opendir
Groups: php.notes 
Request: Send a blank email to php-notes+get-126125@lists.php.net to get a copy of this message
Using Apache 2.2.4 with PHP and MySQL I was trying to connect to a Novell Netware drive using opendir("R:/") where R: was pointing to a Netware resource on another server. The error returned was Warning: opendir(R:/) [function.opendir]: failed to open dir: No such file or directory in path/to/my/phpfile/containing/opendir on line 34. Basically it is a problem with Netware rights and users and how the apache service was trying to connect to the resource. To get everything working as expected in the end we set up a Windows user account eg: webhost with the same password as a Netware account with username webhost, set the Netware account to have rights to the resource R:/ (we just used admin rights), and set the apache service to run as the webhost user using the username password combo. Hope this helps someone else out. ---- Server IP: 66.207.199.35 Probable Submitter: 24.67.32.253 (proxied: 1.1 tcssw:800 (squid/2.5.STABLE14)) ---- Manual Page -- http://www.php.net/manual/en/function.opendir.php Edit -- https://master.php.net/note/edit/74892 Del: integrated -- https://master.php.net/note/delete/74892/integrated Del: useless -- https://master.php.net/note/delete/74892/useless Del: bad code -- https://master.php.net/note/delete/74892/bad+code Del: spam -- https://master.php.net/note/delete/74892/spam Del: non-english -- https://master.php.net/note/delete/74892/non-english Del: in docs -- https://master.php.net/note/delete/74892/in+docs Del: other reasons-- https://master.php.net/note/delete/74892 Reject -- https://master.php.net/note/reject/74892 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126125) next »