Hello Tiddlers,
I've got TiddlyWiki running on a server and saving it with the infamous
store.php file. It works great. But, I had to remove a few lines of code in
the store.php file to make it work. My server is using PHP 7 and split()
has been removed in this version of PHP. A replacement is preg_split(), but
I couldn't get that to work either. To experiment, I decided to see what
happens if I just remove this "get options" code. I went for it, and now
everything saves with no errors or warnings.
// get options
foreach($optionArr as $o) {
list($key, $value) = split('=', $o);
$options[$key] = $value;
}
If this code is important, could anyone tell me how to code it properly for
PHP 7+ ? The error I get if I change split() to preg_split() is that the
delimiter is missing.
Thanks,
Billy
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/b0b33b7b-10c4-4168-8d88-2a6fa275bb88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.