I want to store php script as a variable.
How can I do that?
I tried
$template = '<?php';
$template = '<'.'?'.'php'.'\n';
but it doesn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Both are correct.
If you try this:
you’ll end up with an empty HTML page but if you view the source you will find
as result, and it’s rendered by HTML as incorrect tag that’s why you have an empty page.
Try this:
and you’ll end up with the correct value shown in javascript alert popup