hello to all,
i want to create a variable in my webpage that will contain source -codes of languages and echo it when necessary.say,
$source='php code or c code or sql code';
echo $source;
but the problem is that whenever i put php code or sql code or any code in $source and try to execute it .the php code inside $ source starts executing .is it possible that whatever code i put in $source ,it is taken as text string and echo it as test whenevr we need it.it should not get executed and it should not interfere with the rest of the php code.
in short ,i just want to source code in $source variable and print it on the webpage.how can i do it?