Hi Eric,
Thank you for replay.
Problem has been solved with this.
But As I told you that before 3-4 days it was working fine with
$cd=dirname($this->GetWebPath(__FILE__));
I had not changed anything. Then why it had stopped working?
bcoz it may create problem again