Re: Handling Macintosh filenames in PHP

From: Date: Fri, 20 Apr 2001 03:06:18 +0000
Subject: Re: Handling Macintosh filenames in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49485@lists.php.net to get a copy of this message
On a Mac it is just diskname:folder1:folder2:blah.txt The colon is the path delimiter, and is the only illegal character in a mac path. But I'm most curious as to why you would need this. Presumably you're writing your client in a web browser? In that case you're never really exposed to the peculiarities of the client filesystem. And if you're writing a network client, this would be taken care of by the API. Julian on 4/19/01 7:52 PM, Shawn Reed at shawn@remotebackupcenter.com wrote: > > Greetings all, > > I'm currently in the middle of developing a rather large piece of software > written in PHP. I'll spare you the details, but essentially it is a glorified > FTP client. The goal here, of course, is to develop a client that will work > on any platform. In theory, this SHOULD work, because PHP runs server-side, > therefore eliminating any problems that would normally arise from differences > between the various platforms. > > However, it occurred to me that there isn't really a way (that I know of) to > directly address a specific filename on a Macintosh as there is in other > operating systems. For example, in Windows I could type > C:\WINDOWS\SYSTEM\BLAH.EXE or in Unix I could type /var/spool/mail/whatever > ... but is there a way to do such a thing on a Mac? Can you directly address > a file several levels deep in the filesystem without using the MacOS interface > itself to do so? The project I'm doing relies on the ability to do just that, > and it would appear that I've hit a bit of a snag. > > If anyone can offer any suggestions or advice, I'd really appreciate it. > Thanks in advance. -- Julian Wood Learning Technologies and Digital Media University of Calgary

« previous php.general (#49485) next »