richardstan Posted October 23, 2008 Share Posted October 23, 2008 I am using file_get_contents() to return the contents of a php File. In another php file i am printing this contents, however, instead of priting just a string, the PHP inteprets it as PHP commands and renders it as if it were interpreting the commands of a real PHP file. How can i convert the $file contents into a String which prints as a String? Thanks Richard. Quote Link to comment https://forums.phpfreaks.com/topic/129753-solved-output-variable-as-string/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 23, 2008 Share Posted October 23, 2008 You would need to post your code to get any help with what it is doing. Quote Link to comment https://forums.phpfreaks.com/topic/129753-solved-output-variable-as-string/#findComment-672754 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.