Thank you for the illumination, Allen. This was so stupid. I'm sorry to use time and resources of people that have better to do than waste time on problems that stem from confusion and bad use. Debugging CGI scripts is tedious. On the same token, how could I have avoided this ? The "faulty" line of code came from the how-to document posted on the official rebol site ! In other words, all people trying to get a grip on rebol and CGI might experience the same difficulties as I had (as long they aren't aware query is a system word). And if the author of the how-to document is reading this, can he explain why he used a system word for storing an object. Shouldn't that be changed at once ? > Acutally it is quite easy to understand, now that you have shown what else > in your script. > 'query is a function in Rebol (you redifine it in your code) and 'exists? > uses the 'query function. > (Use ? query and source exists? to see what I mean) > So just change the word to something like this. > query-object: make object! decode-cgi system/options/cgi/query-string > To help prevent yourself from accidently redifining system words you could > use > 'protect-system > Cheers, > Allen K > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, June 23, 2000 1:45 AM > Subject: [REBOL] How's this for frustration... or...NT/CGI/mail prob > solved... Re:(2) >> > Now if someone could explain me how the following is possible : >> >> > list-dir %/existing/path/ >> >> > produces a correct directory listing. But with the same path, >> >> > print exists? %/existing/path/ >> >> > results in false. >> >> > Note: the script does run with execution permission. >> >> I'm getting somewhere : >> >> query: make object! decode-cgi system/options/cgi/query-string >> >> when the line above is commented out, all file access problems >> disappear. >> >> This is not a solution, of course, because I need to fetch CGI >> parameters, but the problem comes from creating an object, or using >> it, I don't know yet... >> >> -- >> [EMAIL PROTECTED] >> http://perso.worldonline.fr/mutant >> >> >> >> -- email: [EMAIL PROTECTED] homepage: http://perso.worldonline.fr/mutant PGP information: available on homepage or on public certificate servers
