basename() returns blank?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


We are on PHP 5.0.2 LINUX system. Since an hour ago, the function
basename() started resulting inconsistent values.

print ( "dirname - " . dirname ( __FILE__ ) . "<br>\n" );
print ( "basename - " . basename ( __FILE__ ) . "<br>\n" );

The 'dirname()' returns proper results everytime. However, 'basename()'
sometimes returns the proper result, and sometimes nothing. This
started happening since this morning. Till then everything was working
fine. What could ever be the problem?


Site Timeline