If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > reading db file from a different server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-04, 14:19
area area is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Question reading db file from a different server

Hi,

Is it possible to open a dBase file by referencing it from another server?

I've checked to make sure I have access to the file, and I am able to download it, now I just need to be able to pull records from it

Here's my code: (php)

PHP Code:
<?php
$table 
"http://xx.xxx.xxx.xxx:81/invntry.dbf";
$db dbase_open($table0);

$numRecords dbase_numrecords($db);
$numFields dbase_numfields($db);

dbase_close($db);

print(
"$numRecords\n");
print(
"$numFields");
?>
It keeps telling me the file cannot be opened! Grr. Anybody have any ideas on how to get around this?

Thanks!
Alan
Reply With Quote
  #2 (permalink)  
Old 07-08-04, 14:29
AceOmega AceOmega is offline
Registered User
 
Join Date: Apr 2004
Location: Arizona
Posts: 49
Internet Guest

Does the IUSR_XXXXX Internet Guest have rights to the directory the table resides in? This could be your proble. Also if you are using a client server data base (which looks like you are not *.dbf) you may want to also give the system user rights to that folder as well. Remember Windows 2003 does not automaticaly do this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On