motleydata;10999379 wrote:the actual problem is that the script is not even shown in the source code by the browser
It's not supposed to be shown there. If it is shown there, that means you've got a bigger problem since the PHP code was never executed in the first place. Otherwise, you'd be able to view the contents of any PHP script just by looking at the source of the displayed page in your browser. This would be a huge security risk.
(And if you're still not convinced that PHP code should never be able to be viewed from the browser, can you please view the source code of this page - e.g. the /board/showthread.php script - and show us all of the vBulletin PHP source code?)
motleydata;10999379 wrote:if it is not the browser problem, please let me know, what sort of problem is it?
It's a variable scope problem. Did you try reading the code comments in the code itself? They already explain (as Derokorian points out) that nothing will be echo'd, since there is no such variable called $a inside of that function.
EDIT: For more information about variable scoping, see the manual page: [man]variables.scope[/man].