Jump to content

Archived

This topic is now archived and is closed to further replies.

richardstan

[SOLVED] Output Variable as String

Recommended Posts

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.

Share this post


Link to post
Share on other sites

You would need to post your code to get any help with what it is doing.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.