In article < >,
vijay <> wrote:
: I'm trying to check to see if a paticular file exist on the machine,
:i'm unable to check for files insides directories which have space in
:between their names, If i run the script from the command prompt they
:seem to run fine, but when i try to open the script on a browser, it
:is not able to even open the directory, i get a Invalid Argument
:Error,This does not happen for directories which do not have a space
:in their name.Any help is greatly appreciated
How are you passing the directory name in to the CGI script? If you
are passing it through the GET method (i.e, the directory name
is part of the URL) then make sure that you replace each space
with the character triple %20 -- .e.g,
http://www.yahoo.com/~vijaysenthilv/...n/checkfile/hi there #wrong
http://www.yahoo.com/~vijaysenthilv/...ile/hi%20there #better
--
Live it up, rip it up, why so lazy?
Give it out, dish it out, let's go crazy, yeah!
-- Supertramp (The USENET Song)