You are here: Re: Strange characters appearing from includes « HTML « IT news, forums, messages
Re: Strange characters appearing from includes

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация