php-windows Digest 21 Nov 2002 06:08:11 -0000 Issue 1450
Topics (messages 17051 through 17054):
Re: how to access file stats on network dirves..
17051 by: İHenk-Jan de JongT
17052 by: Brian 'Bex' Huff
Question from a total newb
17053 by: Joe Finlinson
17054 by: Dash McElroy
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
...
just found out it's only a rights thing...
iis runs as iusr_$machine_name
this user as a default cannot access the network drives...
"İHenk-Jan De Jongt" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm working on a file sharing solution in php.
> i got a network share that contains these files.
> the idea is to read the file data en parse descriptions thru php to the
> client in html.
>
> only problem is that opendir works fine on the local drives, but reports
> only errors when used on network drives..
>
> what's the way to go around this one?
>
>
--- End Message ---
--- Begin Message ---
Two things you might want to try...
1) you are doubtless running IIS or Apache as a service. Make sure that
you are running it as a user who has access rights to the network drive.
For example, you may need to run it as a domain user, and supply a
password. Check the "Services" control panel for more info.
2) You may want to map your network drive as a local drive
And fyi, its always easier to diagnose your problem if you supply us
with the exact error messages you are getting...
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
I'm working on a file sharing solution in php.
i got a network share that contains these files.
the idea is to read the file data en parse descriptions thru php to the
client in html.
only problem is that opendir works fine on the local drives, but reports
only errors when used on network drives..
what's the way to go around this one?
--- End Message ---
--- Begin Message ---
I am using a machine running Windows XP pro... I managed to install IIS just
fine. However, it seems that I am having major traumas getting PHP, Apache,
and mysql to function. I have tried downloading some pre-configured kits
from various sites with no luck. Can any of you suggest a place where I can
download the software... and give me some advice on configuring it.
Thanks in advance,
Joe
--- End Message ---
--- Begin Message ---
Alright, I'll take the bait.
1. If you've got IIS installed, why are you trying to install Apache?
Choose one or the other.
2. Configuration for either server should be drop dead easy. The PHP
installer exe file should configure IIS (I don't use IIS, fortunately),
and the zip file contains what you should use for Apache. Put it in c:\php
(or wherever...). Apache config is easy for a localhost install. You'll
have to change a few lines and add a few.
a. For an Apache server without a DNS entry, change the following line to
reference your IP:
ServerName xxx.xxx.xxx.xxx
b. Add these lines for PHP
LoadModule c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
c. Change this line if you want index.php to be a valid initial page:
DirectoryIndex index.html
to
DirectoryIndex index.php index.html
d. Restart Apache.
3. Get MySQL from MySQL.com and install it where you want. MySQL should be
the easiest thing to install of the three. Set up a user and a password
for PHP. I initially learned MySQL (scratch that - still learning) using
the root user (very dangerous) until got a grasp of it's permissions.
Definitely don't do that for code that others will use.
Good luck!
-Dash
Immortality -- a fate worse than death.
-- Edgar A. Shoaff
On Wed, 20 Nov 2002, Joe Finlinson wrote:
> I am using a machine running Windows XP pro... I managed to install IIS just
> fine. However, it seems that I am having major traumas getting PHP, Apache,
> and mysql to function. I have tried downloading some pre-configured kits
> from various sites with no luck. Can any of you suggest a place where I can
> download the software... and give me some advice on configuring it.
>
> Thanks in advance,
> Joe
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---