Im greping (getting) part of HTML file and echo_ing in next web. Of course, there is some Javascriot inside what must be captured and presented on this web intact and working.
Im using fopen & fgets to get this file content and finaly assgning it to variable. So, in grande finale I have string.
To simplify things I wanted just echo $my_string. ... and there is no JSC at all!!!
================================
<script type="text/javascript">
<!--
var optgroup = 0;
var browser = '';
//-->
</script>
Ends like that:
<script type="text/javascript">
</script>
========================
Almost looks like echo thinks that thispart is not JSC, but part of PHP and isnt showing it at all.
Anyone have ideas, workarounds?