[Tiki-devel] Calling Tiki from the command line
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I'm making progress with my MoinMoin to Tiki migration program, which I call "moin2tiki". I've read and commented most of the lib/wiki/xmllib.php script, which implements most of the "XML Import-Export" feature. See the page "XML-Wiki- Import-Export" on doc.tiki.org. I've come to the conclusion that I can't use this feature. So my program is supposed to work like this: It parses and converts the MoinMoin pages to Tiki. (Those are stored on disk.) The pages along with symlinks to the attachments are stored in a directory structure. A PHP script (moin-import.php) is placed in the Tiki root directory. This script is called by moin2tiki. It loads the Tiki libraries and uses them to store the pages and attachments, which it has read from the directory structure, in the Tiki database. The script is to be called directly from a shell, with "sudo -u www-data php moin-import.php <path>" or something like that. It's *not* called by the web server. Now my question is this: Will this work? Can Tiki be accessed this way (by a PHP script that runs from a shell/from the command line)? Cheers, Volker _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmIFZkkACgkQ+K4ydFOs HoWeVhAAyOlJCEhFeZjfyL5hZ33c5eoTukvziLyHdha4ergsdxrWamH9GddnuYSp VnqGH5w3+gKpGmeGUK8IgKoNYCQ9KWcghlL4pU2cfvwYyEbHD0M7toxXhY9ke0hN /VN0MRRpgYn9cXF5UrxwfJO8vrcyxcb+Gt0PNAvbTCn+9Clg7aONAIS9vixwlcXL L7s8Xymqzn/l9FTJ6iCmjGf3KQbB/Ej47IN8mgF1lYrjWqQXfeKLy8N4rdM/7zgT e0n79FdKpOl+VqI+dBV/3txa9cMVsNo86d8qsVQL2zREUk0EmktqgKAf6diJkUh1 YzrCELMB+KmG2M7nWKe4UA40GyRY86txkd3vd3lNQ1POZNFrHqCoIvH0nh1n4uSD UPgEQETyfU5eucdo8lzDeZgHvg9LWBhFGBdyCDtMcBj1WPPfEIGIWxuFgITGyB2+ N5DRdXGJdF9G6vMJ2SbcKA+Y/qsFQVebm/snz8Wl3ZpLDA7n3ikz6kOO7kt1NpWR 6ZxW1dhjyuEBEsWT9zM5Fw1E8QtFQmIBat8Urxj3532LOABMqhhUuU6a7uawEmxo 8Qf99XQ22mMMoZG53m9ovLJwoE58HZXP7MbhnSsxVDjtqIy+WeKAGy8yjcwMMYvn 1c4GvcsLCKNyexedmEB7p3C3NL0oc2ZqREkRLSHTcki+GTRM1SU= =PDel -----END PGP SIGNATURE-----