[PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Dengxule
nd, i want to make sure the file i'm openning is Completely Written. Any instruction will be grateful. PS: I've made a test. My php-script just "fopen" a local file being transported in, and the "fopen" returns no FALSE value but a resource. Dengxule 2009/08/19

Re: [PHP] Mediawiki's url confusion

2009-07-23 Thread Dengxule
I think PATHINFO is probably what i'm looking for. Paul mentioned the "lookback" feature, i think that is or about the same thing. MediaWiki-1.15.1 use the pattern of url for common pages like this : some_path_to_mediawiki/index.php/something , and the 'something' supports even non-english charac

Re: [PHP] Re: A form and an array

2009-07-23 Thread Dengxule
In php.ini turn the "display_errors" to "on". If any error,warn or notice shown,copy them and paste here. So you can tell us what doesn't work. good luck~ 2009/7/24 Jason Carson > > Jason Carson wrote: > > > >>> Jason Carson wrote: > >>> > Hello everyone, > > Lets say I have a fi

Re: [PHP] Mediawiki's url confusion

2009-07-23 Thread Dengxule
Thanks a lot. As far as i know, both methods dealing with urls are WEB-SERVER-TECH. While I was installing mediawiki, i did nothing with the file "httpd.conf", no changes made on . The mediawiki install script cannot do nothing to httpd.conf i think. So i'm confused about how the url-rewriting me

Re: [PHP] Structure of PHP files

2009-07-23 Thread Dengxule
uot;__autoload" may bring confusions. Hoping for the coming of the concept of PACKAGE. Seems that NAMESPACE will be introduced in PHP6. Dengxule 09/07/23