|
Posted by dorayme on 06/26/07 22:36
In article <m9p7l4-9se.ln1@ophelia.g5n.co.uk>,
Toby A Inkster <usenet200706@tobyinkster.co.uk> wrote:
> dorayme wrote:
>
> > I have been getting some strange characters appear from my local
> > server when some markup is delivered via a php include.
>
> This probably isn't your problem, but I thought I'd like to mention
> it anyway, just in case.
>
> Mac OS X likes to create a hidden file in each directory called
> ".DS_Store". If you use any PHP code that loops through an entire
> directory and includes each file found there (which is what I do
> to load plugins for my CMS) then this will cause the binary
> ".DS_Store" file to be included, adding about a kilobyte or so of
> random crap to your output. This happens if you're using Mac OS X
> as your server OS (as I was), or have uploaded an entire directory
> from a Mac OS X development machine onto your server.
>
> I solved this by telling my plugin loading mechanism to ignore all
> files with names that start with a dot.
If I ever supect trouble on this score, I might have to ask you
how you tell a "plugin loading mechanism" or any other relevant
mechanism such a thing. I am not aware of any such files on
external servers - the only ones that really matter to me. (I
have had some close oddities on occasions, Mac keep resource
forks and it is a bit of a nuisance when communicating with non
Mac file systems sometimes.)
--
dorayme
Navigation:
[Reply to this message]
|