From: Leiss, Klaus-G. 3. S-PP-RD-E. <Kla...@he...> - 2003-02-24 08:53:57
|
Hello, I have a problem with pgsrc. My webspace provider has=20 only access through ftp and I got problems downloading=20 PhpWikiAdministration%2FRemove. I have tried various ftp clients on linux and windows. I got the same problem with some of the localisated files. Since I can only connect through ftp, no ssh or telnet i can not download the complete archive of phpwiki. I have read in the source that there is a new (zip file ) and an old stile single files. Does this mean i have only to compress the files to a zip file and put this info in index.php. What should i do with the localisated versions. Another question is should the default version not be the "new". I don't know how many other people get the same problems. Since I mentioned PhpWikiAdministration%2FRemove, what should it do. If I try it on my server at home I got if I remenber right "no pages selected" or something like that. Klaus Leiss |
From: Carsten K. <car...@us...> - 2003-02-24 13:11:44
|
Hi Klaus, I am guessing the strange filename is causing problems for some ftp clients (or perhaps your server) who tries to automatically decode the %2F into a "/". We had to take this approach because CVS was designed for and only works consistenyly with 7-bit US-ASCII filenames. As Jeff mentioned in his other message we may need to look at designing a new method to store filenames because it can also cause problems for the XHTML dump (view from local hard drive versus on a web server). When loading files, you would need to specify the directory where you uploaded the files, relative to PhpWiki. So if you upload into a directory called "pages" inside phpwiki: pages/PhpWikiAdministration%2FRemove or for localized files (so long as you uploaded them there:) locale/de/pgsrc/MyPage.zip I believe that simply zipping the file should work in the same way. If you have access to the global /tmp directory on the server via FTP that should work too, but add "/" to the front for absolute path: /tmp/phpwiki/ Using the above, PhpWiki should load all pages found in "/tmp/phpwiki/". I hope this helps, Carsten On Monday, February 24, 2003, at 03:53 am, Leiss, Klaus-Guenter 3188 S-PP-RD-E2 wrote: > Hello, > I have a problem with pgsrc. My webspace provider has > only access through ftp and I got problems downloading > PhpWikiAdministration%2FRemove. I have tried various > ftp clients on linux and windows. I got the same problem > with some of the localisated files. Since I can only > connect through ftp, no ssh or telnet i can not download > the complete archive of phpwiki. I have read in the > source that there is a new (zip file ) and an old stile > single files. Does this mean i have only to compress the > files to a zip file and put this info in index.php. What > should i do with the localisated versions. Another > question is should the default version not be the "new". > I don't know how many other people get the same problems. > > Since I mentioned PhpWikiAdministration%2FRemove, what > should it do. If I try it on my server at home I got > if I remenber right "no pages selected" or something like > that. > > Klaus Leiss |
From: Jeff D. <da...@da...> - 2003-02-24 17:37:03
|
> My webspace provider has > only access through ftp and I got problems downloading > PhpWikiAdministration%2FRemove. I just tried uploading that file from Linux using both the 'ftp' and 'ncftp' ftp clients and had no problem. Maybe it's a problem with your provider's ftp server? > I have read in the > source that there is a new (zip file ) and an old stile > single files. Does this mean i have only to compress the > files to a zip file and put this info in index.php. Yes. That should work fine. I haven't tested it in awhile though, so who knows. (Caveat: If your PHP doesn't have zlib support, then PhpWiki can only read uncompressed zip files.) > What should i do with the localisated versions. Err... well... that may be a bit of a problem. The most straightforward thing to do would be to copy into one directory all of the pgsrc you want in your wiki. Then zip it into a zip file, upload the zip file, and point WIKI_PGSRC at that. Next set your DEFAULT_LANGUAGE to 'en', to keep PhpWiki from looking for the localized pgsrc at all. After you load up the wiki, you can set DEFAULT_LANGUAGE back to whatever you really want it to be. > Another question is should the default version not be the "new". It's more convenient to maintain/inspect pgsrc exploded in a directory than in a zip file. That's why we keep doing it that way. > I don't know how many other people get the same problems. I don't think it should be common. It sound like a real bug in something. One should be able to FTP file with %'s in their names. > Since I mentioned PhpWikiAdministration%2FRemove, what > should it do. If I try it on my server at home I got > if I remenber right "no pages selected" or something like > that. I just changed the default behavior so that it only lists pages which have been "deleted". ("Deleted" mean someone has edited the page and set the page content to the empty string --- when you do this, for most purposes PhpWiki treats the page as non-existent.) If you want it to list all pages add the arg min_age=-1. (Either as a query arg, or, if you want to change the default, edit PhpWikiAdministration/Remove and add "min_age||=-1" to the plugin args.) |
From: Oliver B. <ob...@de...> - 2003-02-25 07:47:41
|
"Leiss, Klaus-Guenter 3188 S-PP-RD-E2" wrote: > I have a problem with pgsrc. My webspace provider has > only access through ftp and I got problems downloading > PhpWikiAdministration%2FRemove. I have tried various I had the same problem, it was the FTP server not allowing certain characters in filenames (not even for rename). Ask your provider. Suggestions: - ask your provider to fix this - ask him for a shell account (and upload an archive or rename the file). You should know what you do. - look for an solution to create the file with a script. Use this with care - you should know what you do. - go to another provider. Oliver |
From: Carsten <car...@ya...> - 2003-02-25 08:13:34
|
Klaus suggested to me that simply removing the % sign from PhpWiki dump / pgsrc filenames might eliminate such esoteric ftp problems. It means a bit more work to write code for PhpWiki to decode these filenames but I believe it can be done. Any comments / suggestions? Carsten |
From: Martin G. <gim...@gi...> - 2003-02-25 19:39:28
|
Carsten <car...@ya...> writes: > Klaus suggested to me that simply removing the % sign from PhpWiki > dump / pgsrc filenames might eliminate such esoteric ftp problems. > It means a bit more work to write code for PhpWiki to decode these > filenames but I believe it can be done. Any comments / suggestions? Couldn't we simply substiture the '%' sign with some other non-alphanumeric character except '-', '_' and '.' which is ignored by rawurlencode()? Perhaps '~' og '='... When decoding, this character is then changed back to '%' and the normal rawurldecode() is used. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |
From: Tei <42...@in...> - 2003-02-26 13:43:29
|
Hello, I am a OpenGL developper and use PhpWiki for my website (telejano.berlios.de) and want to use PhpWiki to generate some documentation. I am extremly lazzy. My lazyness is enormeous. I dislike tipping extra chars.... I am writting a big documentation doc, with phpwiki, and I will externalize has .xhtml files, and compile has a .chm help file. But is slow to write the "[" and "]" around keywords to make then links. I have opened the index.php file and inside its a php-regular expresion to detect wikiwords. Can aniyone in this list provide me a regex for my needs? I want to make wikiwords this way(*): $func_ladder $rscript_mikmod Actually i need to type: [func_ladder] [rscript_mikmod] I know this is absurd, lame, and extremlly lazzy, but i am a lazzy men. I am a coder, and for some reason i hate to write docs for my apps. Help me, please. -Tei note: Yes, I actually post that because I want to save 1 extra typping char per wikiword, whooooo..... |
From: Jeff D. <da...@da...> - 2003-02-26 17:53:13
|
> I want to make wikiwords this way(*): > > $func_ladder > $rscript_mikmod You can try: $WikiNameRegexp = "(?<![[:alnum:]])\\$[_a-zA-Z]+(?![[:alnum:]])"; But that will give you links to pages named "$func_ladder" (i.e. the $ will be part of the page name.) If you want the $ to disappear, you'll have to do more serious hacking in lib/InlineParser.php --- and you're on your own, there. > I am a coder, and for some reason i hate to write docs for my apps. > Help me, please. You are not alone. Help us all, indeed! |