Re: Open file on a Mounted Share on Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Permissions have been set on the Windows Server for the Mac user... And all
permissions have been given to him.

This is my code.. 

<?php
#Check is DBF Exists
$filename = "/Volumes/foresight/2qc0831.dbf";
if (file_exists($filename)) {
   echo "<br><br>$filename exists";
} else {
   echo "<br><br>The file $filename does not exist";
}
?>
<br><br><br>
<?
#OPEN DBF FILE - READ ONLY
$db = dbase_open("/Volumes/foresight/2qc0831.dbf", 0);
if ($db) {
  $record_numbers = dbase_numrecords($db);
  for ($i = 1; $i <= $record_numbers; $i++) {
     $row = dbase_get_record_with_names($db, $i);
     if ($row['PHONE'] == $thekey) {
?>



On 9/12/06 5:37 PM, "Ray Hauge" <ray.hauge@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Tuesday 12 September 2006 16:27, Rahul S. Johari wrote:
>> Ave,
>> 
>> I¹m getting really frustrated with this. How do I get PHP to open/read a
>> file which is on a Share, mounted on Mac OS X.
>> 
>> My Mac OS X is connected to a Windows 2003 Server... A Shared Folder
>> remains mounted on my Mac OS X and I need PHP to read a file off that
>> share. But it won¹t! I just can¹t get the path to work!!
>> 
>> I¹ve tried ³/Volumes/Server/file.dbf² ..... I¹ve tried to create Aliases
>> (shortcuts)... But nothing seems to work! What¹s the trick? How can I get
>> this to work? Any suggestions?
>> 
>> Rahul S. Johari
>> Supervisor, Internet & Administration
>> Informed Marketing Services Inc.
>> 500 Federal Street, Suite 201
>> Troy NY 12180
>> 
>> Tel: (518) 687-6700 x154
>> Fax: (518) 687-6799
>> Email: rahul@xxxxxxxxxxxxxxxxxxxx
>> http://www.informed-sources.com
> 
> First I would check to make sure that permissions are set correctly.  PHP
> doesn't (necessarily) run under your user account.  Other than that I have no
> idea.
> 
> HTH

Rahul S. Johari
Supervisor, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite 201
Troy NY 12180

Tel: (518) 687-6700 x154
Fax: (518) 687-6799
Email: rahul@xxxxxxxxxxxxxxxxxxxx
http://www.informed-sources.com

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux