Jordi Domingo wrote:
Hello, to know who is editing I save/read a file with
the user id and
some special paramaters.
I would like to no necessary register the people... there's any
variable related to an anonymous session that has a value in index.php
and editpage.php/article.php? (so I could use it as a session
identifier)
I really don't know what you're getting at, but perhaps you want to use
the AuthPlugin interface to automatically set up accounts as people log
in, based on your external authentication database.
Other question: when I save the file, I can't save
with a newline
except if i manually put in with return: if I put \n, doesn't catch it
as a newline! Kwrite isnerts some spaces before the return and so the
newline has some spaces before...Any idea why
$mytextosave='Hello'.'\n' doesn't work? (the resulting content is
'Hello\n', that is, as a normal caracter)
You may want to take a look at the PHP online documentation, which
explains the format of string literals and the difference between
single-quoted and double-quoted strings:
http://www.php.net/docs.php
-- brion vibber (brion @
pobox.com)