Can anyone tell me that how could I print the executed php code ?
For example if I write a code like:
<? echo "Hello World"; ?>
Then it will show a output of:
Hello World <? echo "Hello World";
the code itself is fine...
check #1 you have saved as a .php file not .html or .txt etc. check #2 you are testing on a php enabled server
If you want to print the actual php code also you will have to do this:
<? echo "Hello World<br /><br />"; print '<?<br /> echo "Hello World";<Br /> ?>'; ?>
--FrosT
You can't do it unless you have access to the file. If you do have access, and want to see it on the server for some reason, copy the file with a '.txt' suffix on the new file name.
you have the file save your coding to a .phps file then view that in an iframe