You are here: Re: Drive Letter And A FQFN (Fully Qualified Filename, OS:Windows), PDO « PHP Programming Language « IT news, forums, messages
Re: Drive Letter And A FQFN (Fully Qualified Filename, OS:Windows), PDO

Posted by Alvaro G. Vicario on 05/18/07 16:32

*** Jim Carlock escribió/wrote (Thu, 17 May 2007 18:09:56 -0400):
> The only problem there, is that no shares really exist... except the
> hidden shares. It's not a networked drive. It's a mapped drive letter
> created to shorten a path. Subst.exe was used to create the the drive
> letter.

Alright... I just figured out you were talking about networks paths.
Anyway, what I said about drive letters being a per-user resource is still
valid in your case. I've just linked a folder to letter M: and I've written
this test script:

<?php

echo `dir M:`;

?>

It works fine under command line (with my credentials) but it can't find
the drive if I run it through my local web server (running as "Local
System"). You can check the credentials of the Apache service running
"services.msc".

If you want to use the drive letter under Apache you must find a way to run
substr as Local System and then make sure that Local System user has write
access to the specified folder. Or you can change the Apache credentials in
the services console so it runs as a know user, then log in as that user
and run substr. It's not a PHP issue.




--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация