basename() returns blank?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rithish@gmail.com

    basename() returns blank?

    Hello.

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

    [snippet]
    print ( "dirname - " . dirname ( __FILE__ ) . "<br>\n" );
    print ( "basename - " . basename ( __FILE__ ) . "<br>\n" );
    [/snippet]

    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?

    Regards,
    Rithish.

Working...