File Names with spaces in them?

This is a discussion on File Names with spaces in them? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have the Apache web Server that reads a file for directory locations. The problem is that the program doesn'...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2005
Mike Cox
 
Posts: n/a
Default File Names with spaces in them?

I have the Apache web Server that reads a file for directory locations.
The problem is that the program doesn't understand spaces, for instance "C:
\Program Files\" How do I write "C:\Program Files" without the space? I
also have to contend with the fact that it requires paths to be written the
UNIX way of "C:/Program Files/" which complicates matters even more.


I think there is an escape charcter something along the lines of "C:
\Program/?Files" but I can't for the life of me remember what it is. How
would I even write it if Apache wants it the UNIX way?

FYI I'm trying to get PHP to work on Apache 1.3.x on Win2k. :-)
  #2 (permalink)  
Old 04-03-2005
Brian H¹©
 
Posts: n/a
Default Re: File Names with spaces in them?

Mike Cox wrote:

> I have the Apache web Server that reads a file for directory locations.
> The problem is that the program doesn't understand spaces, for instance "C:
> \Program Files\" How do I write "C:\Program Files" without the space? I
> also have to contend with the fact that it requires paths to be written the
> UNIX way of "C:/Program Files/" which complicates matters even more.
>
>
> I think there is an escape charcter something along the lines of "C:
> \Program/?Files" but I can't for the life of me remember what it is. How
> would I even write it if Apache wants it the UNIX way?
>
> FYI I'm trying to get PHP to work on Apache 1.3.x on Win2k. :-)


Read the FAQ, ask your question(s) in the Apache NG's, and as far as
building Apache to run with windows, use the Win32 builds, i.e.
apache_2.0.53-win32-x86-no_ssl.msi
  #3 (permalink)  
Old 04-03-2005
Frank DeLucca, MS-MPV
 
Posts: n/a
Default Re: File Names with spaces in them?

Mike Cox wrote:
> I have the Apache web Server that reads a file for directory
> locations.
> The problem is that the program doesn't understand spaces, for
> instance "C: \Program Files\" How do I write "C:\Program Files"
> without the space? I also have to contend with the fact that it
> requires paths to be written the UNIX way of "C:/Program Files/"
> which complicates matters even more.
>
>
> I think there is an escape charcter something along the lines of "C:
> \Program/?Files" but I can't for the life of me remember what it is.
> How would I even write it if Apache wants it the UNIX way?
>
> FYI I'm trying to get PHP to work on Apache 1.3.x on Win2k. :-)


c:\program%20files might work. We haven't tested this, but on the other
hand, we do recommend you use the 8.3 convention to avoid any hassle.
--
- Frank DeLucca -

MS-MVP (Not confirmed, yet)






  #4 (permalink)  
Old 04-03-2005
*
 
Posts: n/a
Default Re: File Names with spaces in them?

Hi Mike Cox, You told me:
> I have the Apache web Server that reads a file for directory
> locations.
> The problem is that the program doesn't understand spaces, for
> instance


'the program'? What fucking 'program'? Apache? Something else? What? You
less than vague cretin?

> "C: \Program Files\" How do I write "C:\Program Files"
> without the space? I also have to contend with the fact that it
> requires paths to be written the UNIX way of "C:/Program Files/"
> which complicates matters even more.
>
>
> I think there is an escape charcter something along the lines of "C:
> \Program/?Files" but I can't for the life of me remember what it is.
> How would I even write it if Apache wants it the UNIX way?
>
> FYI I'm trying to get PHP to work on Apache 1.3.x on Win2k. :-)


Try enclosing the filename in double quotes and use forward slashes.

ServerRoot "C:/Mike Cox/is a/fucktard"

Alias /fucktard "C:/Mike Cox/is a/fucktard"

for exfuckingample.

Read the Windows version of httpd.conf, for exfuckingample.

"C:/Mike Cox/is a/fucktard"
"C:/Mike Cox/is a/fucktard/who knows fuck all"

If 'the program' still fails to recognise spaces, use the DOS short path.
See DIR /X, for exfuckingample.

You have spent too much time in cola. Linux makes you fucking stupid.

  #5 (permalink)  
Old 04-03-2005
Jeff_Relf
 
Posts: n/a
Default My lawyers eat your types for lunch.


Hi Check_Kiter, You told Mikie: << Hi Mike Cox, You told me: >>

Unless I see your royalty check in the mail soon,
my lawyers will be contacting your lawyers.

P.S. My lawyers eat your types for lunch.




( ha ha... it's a joke )

  #6 (permalink)  
Old 04-04-2005
Tim
 
Posts: n/a
Default Re: File Names with spaces in them?

On 3 Apr 2005 13:01:21 +0200,
Mike Cox <mikecoxlinux@yahoo.com> posted:

> I have the Apache web Server that reads a file for directory locations.


Do you mean its own configuration file? Or are you talking about using
Apache to work with other files?

> The problem is that the program doesn't understand spaces, for instance "C:
> \Program Files\" How do I write "C:\Program Files" without the space?


As a general rule, the quotes around the path take care of it for you.

i.e. "C:\Program Files\Apache\something or other\" works fine for me.

> I also have to contend with the fact that it requires paths to be written
> the UNIX way of "C:/Program Files/" which complicates matters even more.


Only that you have to swap \ for /. I haven't noticed any special
requirements about dealing with them.

> FYI I'm trying to get PHP to work on Apache 1.3.x on Win2k. :-)


Have you got Apache working by itself, first?

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
  #7 (permalink)  
Old 05-27-2005
Bodger
 
Posts: n/a
Default Re: File Names with spaces in them?

use the underscore and avoid capitals ie my_files



"Frank DeLucca, MS-MPV" <frank.delucca.microsoft@gmail.com> wrote in message
news:20050403115045.CC77743A13@smtp4.wanadoo.nl...
> Mike Cox wrote:
> > I have the Apache web Server that reads a file for directory
> > locations.
> > The problem is that the program doesn't understand spaces, for
> > instance "C: \Program Files\" How do I write "C:\Program Files"
> > without the space? I also have to contend with the fact that it
> > requires paths to be written the UNIX way of "C:/Program Files/"
> > which complicates matters even more.
> >
> >
> > I think there is an escape charcter something along the lines of "C:
> > \Program/?Files" but I can't for the life of me remember what it is.
> > How would I even write it if Apache wants it the UNIX way?
> >
> > FYI I'm trying to get PHP to work on Apache 1.3.x on Win2k. :-)

>
> c:\program%20files might work. We haven't tested this, but on the other
> hand, we do recommend you use the 8.3 convention to avoid any hassle.
> --
> - Frank DeLucca -
>
> MS-MVP (Not confirmed, yet)
>
>
>
>
>
>



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0