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)
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)
Thanks
Jordi
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:
-- brion vibber (brion @ pobox.com)
On 5/23/05, Brion Vibber brion@pobox.com wrote:
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.
Ok, I'll make a look at this...I was thinking about allow everybody edit a same page simoultaneously although isn't registered (with autplugin maybe I can create a "fake" user, although I have to read well at home). There are some additional things I did, like the content is using php, not database, and I triplicated Article and Editpage to Article,article2,article 3,editpage, edit2 and edit3. (each realted to one of the three screens...)
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:
Yes...in fact, I looked examples of fwrite and I didn't understand what was happening...sigh :(
-- brion vibber (brion @ pobox.com)
Lot of thanks
Jordi
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org