Reply to Re: Drive Letter And A FQFN (Fully Qualified Filename, OS:Windows), PDO

Your name:

Reply:


Posted by Alvaro G. Vicario on 05/17/07 21:21

*** Jim Carlock escribió/wrote (Thu, 17 May 2007 14:23:42 -0400):
> This works as long as a drive letter is not FQFN. For instance,
> if, $FQFN = "Z:/mysql/dbn/data.db", PHP replies:
>
> SQLSTATE[HY000] [14]
>
> along with a couple lines of text identifying line numbers and such.
>
> The function above works well if FQFN = "./data.db". But, the
> database file must get set up on a different drive.

Drive letters for network drives are not universal. Each user in the same
computer will have different letters. If you run your script through a web
server, the script will not have access to *your* letters but those of the
user the services runs as (normally LocalSystem).

I suggest you try with UNC paths, such as //server/share




--
-+ 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
--

[Back to original 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

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