Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-15 Thread Richard Lynch
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

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-14 Thread Rahul S. Johari
How can I set the drwxr-xr-x permissions on my mounted share? I've set everything I possibly could in the windows 2003 server to give the mac os x user full control! On 9/13/06 10:49 AM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: Samba. It's an SMB share. On 9/13/06

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-14 Thread Rahul S. Johari
Nope. It looks like this... drwxr-xr-x 3 root root 4096 Sep 13 10:44 . drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight Foresight being the mounted share. On 9/13/06 10:49 AM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote:

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Samba. It's an SMB share. On 9/13/06 12:39 AM, Chris [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' was also listed there, but

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Samba. It's an SMB share. On 9/13/06 12:39 AM, Chris [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' was

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Nope. It looks like this... drwxr-xr-x 3 root root 4096 Sep 13 10:44 . drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight Foresight being the mounted share. Does your webserver run as the user 'rjohari'?

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I'm beginning to see it's a permissions issue... Although I don't know how to approach it, as like I said, I have every permission you can think of set to this mac os x user. Does your webserver run as the user 'rjohari'? When you say webserver, are you talking about my Apache Web Server, or

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
On Wednesday 13 September 2006 10:30, John Nichel wrote: Rahul S. Johari wrote: Nope. It looks like this... drwxr-xr-x 3 root root 4096 Sep 13 10:44 . drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight Foresight being the

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: How can I set the drwxr-xr-x permissions on my mounted share? I've set everything I possibly could in the windows 2003 server to give the mac os x user full control! man mount -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: I'm beginning to see it's a permissions issue... Although I don't know how to approach it, as like I said, I have every permission you can think of set to this mac os x user. Does your webserver run as the user 'rjohari'? When you say webserver, are you talking about

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Been reading and reading... Can't get much out of it. Everytime I try the mount command, I get can't get net id On 9/13/06 11:39 AM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: How can I set the drwxr-xr-x permissions on my mounted share? I've set everything I possibly could

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
On Wednesday 13 September 2006 10:58, Rahul S. Johari wrote: Been reading and reading... Can't get much out of it. Everytime I try the mount command, I get can't get net id On 9/13/06 11:39 AM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: How can I set the drwxr-xr-x

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I tried the chmod command in the Terminal Window, but I'm not really getting the exact command that I need to change the permissions. On 9/13/06 12:08 PM, Ray Hauge [EMAIL PROTECTED] wrote: On Wednesday 13 September 2006 10:58, Rahul S. Johari wrote: Been reading and reading... Can't get

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I think that is the solution to my problem. The only problem is, nothing is allowing me to change these permissions or owner/group. Nor the 'Get Info' window in Mac, nor the Terminal Window. How do I change it? On 9/13/06 11:45 AM, Ray Hauge [EMAIL PROTECTED] wrote: On Wednesday 13 September

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Ray Hauge
chmod 770 foresight does that do anything? If not, try it as the root/admin account. -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 On Wednesday 13 September 2006 12:57, Rahul S. Johari wrote: I think that is the

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Did.. Sudo chmod 770 foresight Specified the root account password. Returned back to prompt without errors, but did absolutely nothing. Permissions remain unchanged. On 9/13/06 2:20 PM, Ray Hauge [EMAIL PROTECTED] wrote: chmod 770 foresight does that do anything? If not, try it as the

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Did.. Sudo chmod 770 foresight Specified the root account password. Returned back to prompt without errors, but did absolutely nothing. Permissions remain unchanged. I don't know about Mac, but in Linux you cannot change the permissions of a mount point while the

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread John Nichel
Rahul S. Johari wrote: Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? This is going way beyond the scope of

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Frank Arensmeier
Hi there. Look at the man page for mount_smbfs - especially the -M option which ia able to set permissions on the mounted SMB volume. If that doesn't help, when you said you tried to make a shortcut to the file - did you do this in the Finder? Try it with a symbolic link in stead (man

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Frank Arensmeier
Sorry for the typos btw... It's late. /frank 13 sep 2006 kl. 21.20 skrev Frank Arensmeier: Hi there. Look at the man page for mount_smbfs - especially the -M option which ia able to set permissions on the mounted SMB volume. If that doesn't help, when you said you tried to make a

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? On 9/13/06 2:42 PM, John Nichel [EMAIL PROTECTED] wrote: I don't

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Curt Zirzow
On 9/13/06, Rahul S. Johari [EMAIL PROTECTED] wrote: Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? With OSX i

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I see that. I'm looking this up online. To bring things back to the scope of the mailing list... Is there anyone here who's successfully had PHP read a file sitting on a mounted share on Mac OS X? On 9/13/06 2:53 PM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: Ok you may be

[PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
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

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
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

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread John Nichel
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.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
In my Windows 2003 Server I've given the Mac OS X user all the permissions possible for that Share. Is there something I have to do in php as far as permissions are concerned? On 9/12/06 5:31 PM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: Ave, I¹m getting really

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
On Tuesday 12 September 2006 16:33, Rahul S. Johari wrote: In my Windows 2003 Server I've given the Mac OS X user all the permissions possible for that Share. Is there something I have to do in php as far as permissions are concerned? On 9/12/06 5:31 PM, John Nichel [EMAIL PROTECTED] wrote:

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
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 brbr$filename exists; } else { echo brbrThe file

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
If I hit 'Get Info' on the share folder, a file within that folder, or even the DBF I'm trying to open... Mac OS X tells me that I have 'Read Write' access to it. Basically All permissions have been provided to the Mac OS X user for that share. This is the error I get: Warning: dbase_open()

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread John Nichel
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 brbr$filename exists; } else {

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
On Tuesday 12 September 2006 16:45, Rahul S. Johari wrote: If I hit 'Get Info' on the share folder, a file within that folder, or even the DBF I'm trying to open... Mac OS X tells me that I have 'Read Write' access to it. Basically All permissions have been provided to the Mac OS X user for

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
As a matter of fact... I'm trying to do file_exists...and it says the file does not exist in the given location... And that's because my path isn't correct. I just don't know what path I need to specify for a shared server folder on a mac os x. On 9/12/06 5:53 PM, Ray Hauge [EMAIL PROTECTED]

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
You're talking about the DBF Exists function... It echo's out that the file does not exist. Which is the whole problem. I've tried specifying different kinds of files that are in that folder... Any file I specify... It gives out that the file does not exist. That's because I can't get my path to

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
Hmmm... That's odd. I would use your terminal program, then change directory to the location of the file, and do pwd. That should give you your working directory. If you can get to it on OSX, and PHP is on OSX, then PHP should be able to see the file in the same path. -- Ray Hauge

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
I did exactly that... Used Terminal to find the correct path. Did pwd in terminal window where my file is located. And this is what I got: /Volumes/foresight Which is what I have used in php to specify the path. But it still says file doesn't exist. On 9/12/06 6:05 PM, Ray Hauge [EMAIL

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Ray Hauge
You could try getting a directory listing with PHP to see if you can see what files are in there, or if you can access that directory through PHP. http://us2.php.net/manual/en/function.opendir.php -- Ray Hauge Programmer/Systems Administrator American Student Loan Services

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Stephen Edberg
Is PHP configured to allow access to /Volumes directory? Check doc_root, open_basedir in your php.ini: http://us3.php.net/manual/en/ini.php steve On Tue, 12 Sep 2006, Rahul S. Johari wrote: I did exactly that... Used Terminal to find the correct path. Did pwd in terminal

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
My doc_root is empty and I don't have a open_basedir specified in my php.ini What should their values be set to for me to do what I'm trying to do? Thanks! On 9/12/06 6:19 PM, Stephen Edberg [EMAIL PROTECTED] wrote: Is PHP configured to allow access to /Volumes directory? Check doc_root,

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' was also listed there, but it's filetype was blank... Others had like dir or link or file But foresight's filetype had nothing in

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Chris
Rahul S. Johari wrote: That was a good idea. I tried that... It was showing nothing for /Volumes/foresight ... But it did show the contents of /Volumes... And interestingly, 'foresight' was also listed there, but it's filetype was blank... Others had like dir or link or file But foresight's