See if "/Volumes" exists. Then if "/Volumes/foresight" exists. Then iterate through each with opendir/readdir and see what's in there. Eventually, you will probably stumble over the issue... Like, maybe you have permissions on the share, but not the file, or ... On Tue, September 12, 2006 4:41 pm, Rahul S. Johari wrote: > > 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 > > -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php