Re: [PHP] PHP with IIS

2002-06-24 Thread Dave Leather

I would KILL to get Linux/Apache in here for our intranet.. but...
noo... gotta be microshft, gotta be NT, gotta be Uncle Bill's friend
(I'm not bitter.. much)...

Anyway. the wierd thing is the system DOES have access, I can go to
http://flcintranet/pi2000/ and press enter.. no problem, directory appears,
and I can click directory after directory down to the file I want.. click
the file, and its says "open " or "save as"... so I can get there using the
browser..

However, my code REFUSES to see it... And I am 99.99% sure this is an
IIS / Microshaft problem.  I run Apache on my windoze box at home and have
NONE of these issues...

Anyway... Thanks for the feed back.. and and all is appreciated right now..
I have spent all day inside of this IIS box and am REALLY looking forward to
a beer when I get out of here... :)

Any other ideas out there? Please, let there be an IIS guru on this forum.
Dave

"James E. Hicks III" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 3:52 PM
> To: [EMAIL PROTECTED]
> 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";
>   if (!dbase_create($dbname, $TableDef)){
>print "Error creating table!";
>   }else{
>print "Table successfully created!";
>   }
>
> Any ideas
> Dave
>
>
>
> "Dave Leather" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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" <[EMAIL PROTECTED]> wrote in message
> > 00ca01c21ba6$b2b36ea0$7432260a@student5830">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" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > 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 D

RE: [PHP] PHP with IIS

2002-06-24 Thread James E. Hicks III

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:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 3:52 PM
To: [EMAIL PROTECTED]
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";
  if (!dbase_create($dbname, $TableDef)){
   print "Error creating table!";
  }else{
   print "Table successfully created!";
  }

Any ideas
Dave



"Dave Leather" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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" <[EMAIL PROTECTED]> wrote in message
> 00ca01c21ba6$b2b36ea0$7432260a@student5830">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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP with IIS

2002-06-24 Thread Dave Leather

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";
  if (!dbase_create($dbname, $TableDef)){
   print "Error creating table!";
  }else{
   print "Table successfully created!";
  }

Any ideas
Dave



"Dave Leather" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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" <[EMAIL PROTECTED]> wrote in message
> 00ca01c21ba6$b2b36ea0$7432260a@student5830">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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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




Re: [PHP] PHP with IIS

2002-06-24 Thread Dave Leather

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" <[EMAIL PROTECTED]> wrote in message
00ca01c21ba6$b2b36ea0$7432260a@student5830">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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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




Re: [PHP] PHP with IIS

2002-06-24 Thread Andrew Brampton

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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




[PHP] PHP with IIS

2002-06-24 Thread Dave Leather

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