Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#13292 [Opn->Csd]: file_exists works with UNC names
ID:               13292
Updated by:       didou@php.net
Reported By:      Helmut dot Himmelstoss at t-online dot de
-Status:           Open
+Status:           Closed
Bug Type:         Documentation problem
Operating System: Windows NT/2000
PHP Version:      4.1.1
New Comment:

FAQ entry added, thank you Paul


Previous Comments:
------------------------------------------------------------------------

[2004-08-25 09:24:02] derick@php.net

This last comment is something for the FAQ i think...

------------------------------------------------------------------------

[2004-08-25 09:17:59] paul dot yau at travelex dot com dot au

You have to change the
Go to Internet Information Services, locate your php file, go to the
properties of the file, Go to File security tab,
Edit -> Anonymous access and authetication control

2 methods:
first: Untick "Anonymous Access" and leave "Integrated Window
Authentication" ticked

second: Tick Anonymous Access, edit and change the user.
The user that's currently listed may be restricted to certain access.


The problem i had was similar to everyone elses.

Here's a small script to check that the share works:

Where:
it-56a is the server
Prod-Temp is the share name
and Temp is the folder in the share name

<?PHP	//UNC connection
$path = "\\\\it-56a\\Prod-Temp\\Temp";

if(file_exists($path))
{
echo "$path exists<br>";
}
else
echo "Cannot find $path<br>";



?>


So i don't think this is a bug, it's more of an IIS setting.

------------------------------------------------------------------------

[2002-06-02 15:03:47] k.schroeder@php.net

This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[2002-04-30 08:06:26] christoph dot grottolo at gmx dot net

Addition to my previous post:

If you use apache and PHP as CGI under Windows and install it as a
service, you have to make it run under a domain account to let PHP
access remote shares (check in control panel -> services). Usually it's
run under the local system account.

I think this is also valid if you run PHP as an apache module but I
didn't test.

Maybe this should also go into the documentation.

Christoph

------------------------------------------------------------------------

[2002-04-30 07:40:57] mfischer@php.net

Sounds reasonable as this kind of things keep coming more often
recently. Marking as documentation problem

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/13292

--
Edit this bug report at http://bugs.php.net/?id=13292&edit=1

Report this thread to moderator Post Follow-up to this message
Old Post
didou@php.net
10-31-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:38 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.