Perhaps if you explain what you are trying to achieve... Or show what's inside engine.php
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86
<?php echo '<script type="text/javascript">var str="';
include("engine.php");
echo '"; var str_esc=escape(str);document.write(str_esc);
</script>'; ?>
almostbob
Nearly a Senior Poster
3,279 posts since Jan 2009
Reputation Points: 585
Solved Threads: 397
Skill Endorsements: 7
OOPS::
ensure that the output of engine.php does not output any unescaped dquotes, which would terminate the variable str and cause errors
almostbob
Nearly a Senior Poster
3,279 posts since Jan 2009
Reputation Points: 585
Solved Threads: 397
Skill Endorsements: 7