[lugm.org] check this weirdness out

Daniel Shaw daniel.shaw at point-oh.net
Wed Mar 24 09:03:03 UTC 2010


Hi,

My guess would be that one of your two mailStats.php files has one or more
whitespaces at the end of the file name.

For exmaple:

daniel.shaw at hades:~$ mkdir foo
daniel.shaw at hades:~$ cd foo
daniel.shaw at hades:~/foo$ touch afile1 afile2 mailStats.php "mailStats.php
"
daniel.shaw at hades:~/foo$ ls -la
total 12
drwxr-xr-x  2 daniel.shaw daniel.shaw 4096 2010-03-24 12:51 .
drwxr-xr-x 35 daniel.shaw daniel.shaw 4096 2010-03-24 12:51 ..
-rw-r--r--  1 daniel.shaw daniel.shaw    0 2010-03-24 12:51 afile1
-rw-r--r--  1 daniel.shaw daniel.shaw    0 2010-03-24 12:51 afile2
-rw-r--r--  1 daniel.shaw daniel.shaw    0 2010-03-24 12:51 mailStats.php
-rw-r--r--  1 daniel.shaw daniel.shaw    0 2010-03-24 12:51 mailStats.php
daniel.shaw at hades:~/foo$ echo '<?php print "hello world 1\n"; ?>' >
mailStats.php
daniel.shaw at hades:~/foo$ echo '<?php print "hello world 234\n"; ?>' >
"mailStats.php "
daniel.shaw at hades:~/foo$ ls -l
total 8
-rw-r--r-- 1 daniel.shaw daniel.shaw  0 2010-03-24 12:51 afile1
-rw-r--r-- 1 daniel.shaw daniel.shaw  0 2010-03-24 12:51 afile2
-rw-r--r-- 1 daniel.shaw daniel.shaw 34 2010-03-24 12:52 mailStats.php
-rw-r--r-- 1 daniel.shaw daniel.shaw 36 2010-03-24 12:52 mailStats.php
daniel.shaw at hades:~/foo$ file mailStats.php
mailStats.php: PHP script text
daniel.shaw at hades:~/foo$ mv mailStats.php mailStats.php.orig
daniel.shaw at hades:~/foo$ ls
afile1  afile2  mailStats.php   mailStats.php.orig
daniel.shaw at hades:~/foo$ file mailStats.php
mailStats.php: ERROR: cannot open `mailStats.php' (No such file or
directory)
daniel.shaw at hades:~/foo$ file "mailStats.php "
mailStats.php : PHP script text
daniel.shaw at hades:~/foo$ ls -l mailStats.php
ls: cannot access mailStats.php: No such file or directory
daniel.shaw at hades:~/foo$ ls -l "mailStats.php "
-rw-r--r-- 1 daniel.shaw daniel.shaw 36 2010-03-24 12:52 mailStats.php
daniel.shaw at hades:~/foo$ ls -l mailStats.php*
-rw-r--r-- 1 daniel.shaw daniel.shaw 36 2010-03-24 12:52 mailStats.php
-rw-r--r-- 1 daniel.shaw daniel.shaw 34 2010-03-24 12:52
mailStats.php.orig




On Wed, 24 Mar 2010 08:38:47 +0000, selven <pcthegreat at gmail.com> wrote:
> Hi, anyone might have any explanation about this (no there were no
> power failure):
> 




More information about the Discuss mailing list