ravix76 Posted July 14, 2007 Share Posted July 14, 2007 I want to include the following text in a string for ultimate writing to a file. "<?php virtual('/phpincs/stats.php'); ?>" Trouble is, PHP sees the ?> even though it's inside quotes and stops processing php. How do I avoid this? Cheers Ravix Quote Link to comment Share on other sites More sharing options...
metrostars Posted July 14, 2007 Share Posted July 14, 2007 htmlentities('<?php virtual(\'/phpincs/stats.php\'); ?>'); Quote Link to comment Share on other sites More sharing options...
logged_with_bugmenot Posted July 14, 2007 Share Posted July 14, 2007 this one will also work "/</?php virtual/(/'//phpincs//stats.php/'/)/; /?/>" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.