Toon posts:

[APACHE PHP] andere drives benaderen vanuit PHP

Pagina: 1
Acties:

Verwijderd

Topicstarter
Is het mogelijk om met PHP een netwerk-schijf te benaderen? Om in een directory op die netwerk-schijf te schrijven en te lezen?

  • technocow
  • Registratie: Mei 2002
  • Laatst online: 26-06 22:17
je bedoelt vanuit Windows?

ja, kan vast wel :)

  • technocow
  • Registratie: Mei 2002
  • Laatst online: 26-06 22:17
moet ie trouwens wel gemapt zijn...

Verwijderd

Topicstarter
ik heb geprobeerd in php.ini de includes toe te voegen, maar dat werkt niet.
PHP pakt alleen de schijf waarop php is geinstalleerd, bij mij C dus.

Tevens is de netwerk-schijf gemapped!

Verwijderd

Gevonden via google: http://www.phpbuilder.com/mail/php-windows/2002011/0102.php
Under what account does your webserver run? Does this account have
appropriate permissions on the share?
It only makes sense to use drive letter mappings for remote shares if your
server runs on a worktation. On a production server you don't usually have
access to mapped drives because no user is logged on.

PHP4 can only access network shares since 4.10, before UNC-Style paths did
not work. However, something with the treatment of backslashes still doesn't
seem to work under certain circumstances. We've made better experiences
using forward slashes like on unix. You can do that in the scripts but also
in php.ini.

If you're running IIS you should check 'check that file exists' in the
administration panel where you enter the mapping from .php to php.exe. Then
IIS will check the permissions for PHP. Sometimes this can help. Make shure
the IUSER_YOURMACHINE account has the appropriate permissions or change it
to a network account.

If you're running Apache, check in Control Panel -> Services under what
account it runs. Usually its local\system. You should change that to a
network account.
HTH :)

Verwijderd

Topicstarter
SUPER!! het werkt...

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

themman78:
Is het mogelijk om met PHP een netwerk-schijf te benaderen? Om in een directory op die netwerk-schijf te schrijven en te lezen?

Dit is wel een erg karige topicstart. Lees voordat je eventueel je volgende topic opent even de quickstart door over wat de regels zijn m.b.t. het openen van een topic. :{

't is nu een beetje te laat om 'm te sluiten, maar weet 't voor de volgende keer!

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz

Pagina: 1