Jump to content

Getting junk values


priyadharshini

Recommended Posts

Hi all,

I have a problem in displaying my file content in browser.

It is being displayed with lots of junk values.

I dont know how to clear that.Please someone help!

 

The used the coding as follows:

 

public function readContent($sEdit, &$contents = null){

        if (file_exists($sEdit)) {

            $handle = fopen($sEdit, "r");

            if ($handle) {

                while (!feof($handle)) {

                    $contents .= fgets($handle, 4096);

                }

                fclose($handle);

            }

        }

    }

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/230790-getting-junk-values/
Share on other sites

  • 2 weeks later...

Am getting junk values like this before and also after the contents

 

ÐÏࡱá����������������>�þÿ ���������������[����������]������þÿÿÿ����Z���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

Link to comment
https://forums.phpfreaks.com/topic/230790-getting-junk-values/#findComment-1192075
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.