You are here: Re: how do you open a file with quote marks in the file name on Linux? « PHP Programming Language « IT news, forums, messages
Re: how do you open a file with quote marks in the file name on Linux?

Posted by lawrence k on 10/19/07 18:47

On Oct 18, 9:34 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(lawrence k)
>
>
>
> >On Oct 18, 8:38 pm, lawrence k <lkrub...@geocities.com> wrote:
>
> >> I've got a client that is a music studio and they've several thousand
> >> mp3s that tend to have file names like this:
>
> >> Adrian Orange - Bitches Is Lord - 13 - Don't Get Used To It.mp3
>
> >> The quote mark in that file name is giving me trouble.
>
> >> The music studio asked me to write a script that could read all the
> >> metadata out of their mp3s and then store the info in a database.
> >> Using the getID3 library, I've had an easy time with all the files
> >> that don't have quote marks in their names:
> >> [...]
>
> >Oh, strange. Apparently I just needed stripslashes. That's all. So
> >weird.
>
> I don't think so. You should only need stripslashes() if magic quotes
> are enabled (can be checked with get_magic_quotes_gpc()) to remove them.
> No magic quotes, no stripslashes().


I guess magic quotes were enabled. It's an old installation, from 3 or
4 years ago, so the server probably adheres to a lot of old practices.
Or maybe it has whatever defaults RedHat Linux shipped with 3 years
ago.

But I did hit the file name with stripslashes, and suddenly the code
worked.

 

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

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