Jump to content

[SOLVED] Output Variable as String


richardstan

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.

Link to comment
https://forums.phpfreaks.com/topic/129753-solved-output-variable-as-string/
Share on other sites

Archived

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

×
×
  • 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.