Re: fopen: space character in filename

From: Date: Fri, 28 Jul 2006 21:27:25 +0000
Subject: Re: fopen: space character in filename
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239862@lists.php.net to get a copy of this message
On Fri, 2006-07-28 at 16:55, Christian Calloway wrote: > Hello all, > > this seems like an easy question, but I could sure as hell couldn't find any > responces to it through initial searched. I am running php on an XP system > and I need to open a file contained with a set of directories which may or > may not have a space character; so for example: > > fopen ("X:\Dont Talk\About\My Momma\please.txt", "x"); > > I tried using \ characters, no luck (even attempted to cancel out the > backspace characters ala \\ and http space code %20, and still nothing.) Any > ideas? RTFM -- you need to double backslash when using double quotes. Otherwise use single quotes. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#239862) next »