[pmwiki-users] Re: Can't save some Chinese wiki word page.
Elias Soong
songjl at 163.net
Thu Sep 29 01:19:24 CDT 2005
When we put "new" in front of $pagefile, it will change the directory
for pmwiki storage, like new-wiki.d/Main.红
And it doesn't work.
----
Warning: fopen(new-wiki.d/Main.红梅颂) [function.fopen]: failed to
create stream: No such file or directory in D:\www\pmwiki2\pmwiki.php on
line 578
PmWiki can't process your request
Cannot write page to Main.红梅颂 (wiki.d/Main.红梅颂)...changes not saved
We are sorry for any inconvenience.
Patrick R. Michaud 写道:
> Okay, then it'll probably be
>
> "$pagefile_new_".time()
>
> or something like that.
>
> Out of curiosity, do either of the following work...?
>
> "new-$pagefile"
> "new,$pagefile"
>
> Pm
>
> On Thu, Sep 29, 2005 at 01:05:41PM +0800, Elias Soong wrote:
>
>>If the name include (-), it doesn't work.. the same as (=)(,)(.)
>>
>>Patrick R. Michaud wrote:
>>
>>>On Thu, Sep 29, 2005 at 11:30:57AM +0800, Elias Soong wrote:
>>>
>>>
>>>>weijiang suggest using $page['host'].$page['time'] as the temporary file
>>>>name.
>>>
>>>
>>>How about something like...
>>>
>>> "$pagefile-new-".time()
>>>
>>>Does that work?
>>>
>>>
>>>
>>>>Patrick R. Michaud wrote:
>>>>
>>>>
>>>>>On Thu, Sep 29, 2005 at 12:56:57AM +0800, Elias Soong wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Warning: fopen(wiki.d/Main.??,new) [function.fopen]: failed to create
>>>>>>stream: Invalid argument in D:\www\pmwiki2\pmwiki.php on line 578
>>>>>>[...]
>>>>>>This only happen on PHP at windows platform, and may only for Chinese
>>>>>>windows platform. On linux, all Chinese word is ok. So we think it is a
>>>>>>bug for PHP.
>>>>>
>>>>>
>>>>>Someone reported a problem like this sometime before, although I
>>>>>didn't have the full platform details. Weird.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>A work a round is, at the line 578, 590 and 592, change "$pagename,new"
>>>>>>to be "$pagename"."_new", all words will be ok. If we change it to be
>>>>>>"$pagename".",new" or "$pagename".".new", it still the same problem.
>>>>>
>>>>>
>>>>>Underscore is a little dangerous, as some sites choose to allow
>>>>>underscores in page names. How about a different character, such
>>>>>as an equals sign (=)? Does that work?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Maybe we should change the temporary file naming method for this
>>>>>>problem. Thanks a lot.
>>>>>
>>>>>
>>>>>This can be done as long as we can find something that works and
>>>>>doesn't collide with likely names.
>>>>>
>>>>>Pm
>>>>
>>>>
>>>>_______________________________________________
>>>>pmwiki-users mailing list
>>>>pmwiki-users at pmichaud.com
>>>>http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>>>>
>>
>>
>>_______________________________________________
>>pmwiki-users mailing list
>>pmwiki-users at pmichaud.com
>>http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>>
More information about the pmwiki-users
mailing list