RE: [PHP] PHP with IIS
| From: | James E. Hicks III | Date: | Mon, 24 Jun 2002 20:17:33 +0000 |
| Subject: | RE: [PHP] PHP with IIS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103664@lists.php.net to get a copy of this message | ||
It looks like apache doesn't have permission to write the file
//flcintranet/pi2000/ordentry/5788/pappexpt.dbf . If you were using a linux/unix
machine I'd tell you to check the permisions on this directory to make sure that
apache can write to it. I wish I could help you out further, but I don't do
windows.
James
-----Original Message-----
From: Dave Leather [mailto:dleather@fineline.ca]
Sent: Monday, June 24, 2002 3:52 PM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP with IIS
OK.... made some headway...
Made my network drive that I wanted to access a virtual directory on my
IIS - this is fine, I can now see all my files and folders when I surf that
virtual directory in a web browser.
However, when trying to create a DB using dbase_create - I receive the
following message
---- start output -----
attempting to create //flcintranet/pi2000/ordentry/5788/pappexpt.dbf
Warning: Unable to create database (13): Permission denied in
C:\InetPub\wwwroot\pappreport.php on line 93
Error creating table!
----- end output -----
Here is my code for this:
// "database" name
$dbname = "//flc/pi2000/ord/pappexpt.dbf";
// database "definition"
$TableDef =
array(
array("BATCH_NUM", "C", 10),
array("DONORNO", "C", 8),
array("FIRST_NAME", "C", 15),
array("MIDDLENAME", "C", 15),
array("LAST_NAME", "C", 20),
array("ADDRESS_1", "C", 35),
array("ADDRESS_2", "C", 35),
array("ADDRESS_3", "C", 35),
array("CITY", "C", 25),
array("STATE", "C", 2),
array("ZIP", "C", 10),
array("TOTAL", "N", 10, 2)
);
// creation
Print "attempting to create $dbname<BR>";
if (!dbase_create($dbname, $TableDef)){
print "<strong>Error creating table!</strong>";
}else{
print "Table successfully created!<BR>";
}
Any ideas????
Dave
"Dave Leather" <dleather@fineline.ca> wrote in message
news:20020624181546.33427.qmail@pb1.pair.com...
> Yes, and Yes...
>
> Access is granted throughout.. Read, Write, Create, Erase, Modify and File
> Scan access is granted for this login ID.
>
> Any other suggestions?????
>
> Thanks again
> Dave
>
> "Andrew Brampton" <andrew@bramp.freeserve.co.uk> wrote in message
> news:00ca01c21ba6$b2b36ea0$7432260a@student5830...
> > Does the user to which ISS runs under have network permissions to access
> p:\
> > ?
> > IIRC you need to set up ISUR_machine_name to have permission to the
remote
> > share.
> >
> > Andrew
> > ----- Original Message -----
> > From: "Dave Leather" <dleather@fineline.ca>
> > To: <php-general@lists.php.net>
> > Sent: Monday, June 24, 2002 6:29 PM
> > Subject: [PHP] PHP with IIS
> >
> >
> > > Hello all,
> > >
> > > I am attempting to open and/or create a DBASE file on a NOVELL
network.
> > >
> > > When I attemp a command such as
> > > if (!dbase_open("C:\\orders.dbf",2)){
> > > print "COULD NOT OPEN DB";
> > > }else{
> > > print "DB WAS OPENED";
> > > }
> > >
> > > I receive a message that says "DB WAS OPENED - no problem...
> > >
> > > On my IIS server, I have Novell drive map to P: - I can browse this
> using
> > > explorer or in CMD I can go to P: and do DIR etc etc.
> > >
> > > When I try :
> > > if (!dbase_open("P:\\orders.dbf",2)){
> > > print "COULD NOT OPEN DB";
> > > }else{
> > > print "DB WAS OPENED";
> > > }
> > >
> > > I receive a message that says :
> > > Warning: unable to open database P:\orders.dbf in
> > > C:\InetPub\wwwroot\pappreport.php on line 81
> > > COULD NOT OPEN DB
> > >
> > > Yes, the database exists, as I copied it FROM here to C:\ to do my
test.
> > >
> > > Any ideas??? I have checked the PHP.INI file, and all the regular
> settings
> > > in IIS - and could not find anything misconfigured.. but I am by no
> means
> > an
> > > IIS expert, so I am not sure.
> > >
> > > Thanks in advance
> > > Dave
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php