Apologies - it turns out that my problem was due to the filter command
not liking numToChar(13) as a line delimiter - which, naturally, the
data uses.
A simple "replace numToChar(13) with numToChar(10) in tData" did the
trick.
There does seem to be one anomaly, however. 'the date' returns the
date, as expected, but 'the system date' returns empty... This seems
to hold for 'the short date' form, as well, I haven't tested others.
Neither of these things are an issue in the IDE, only in the CGI engine.
Thanks for your attention,
Mark
ps. changing the permissions of your desktop folder is not a good idea
- weird stuff starts to happen! Repair permissions and reboot, and all
is well, tf.
On 28 Aug 2005, at 00:43, Dave Cragg wrote:
On 28 Aug 2005, at 00:19, Mark Smith wrote:
No, this is still all on one machine (Mac Powerbook with 10.3.9). The
files are in a folder on the desktop and the CGI is in the
/Library/WebServer/CGI-Executables folder. I'm just pointing my
browser at localhost.
I've tried (whilst in the IDE) importing all the data into
customProperties in the CGI, and that works, but I can't actually get
the CGI to sucessfully open and read any files, even if I copy them
into the same CGI-Executables folder and set their permissions to
755.
It can, however, get the list of files from the folder they're in, so
I'm pretty sure my paths are fine.
You said you had set the Desktop folder to 644. I don't think that's a
good move. However, if the files are in the CGI-Executables folder,
and have permissions set to 755, they should be readable. Are they
loose in the CGI-Executables, and not in a sub-folder? If they're in a
subfolder, check the permissions on that.
How are you reading the files? Are you sure the read is failing, and
not what you do with the data after you read it? What do you get in
"the result" after trying to read the file? I'm guessing it's
different in the CGI than in the IDE.
Cheers
Dave
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution