Ask how the image is displayed in the browser

Source: Internet
Author: User
How can an image be displayed in a browser? For windows debugging, the logic is as follows: the test. php page $ pipe_mode = "rb"; read_config_option ("path_rrdtool") & nbsp; is the rrdtool executable file. $ Fp & nbsp ;=& nbsp; popen (rea. how can I display the image in a browser?
Debug on windows,
The logic is as follows:

Test. php page
$ Pipe_mode = "rb ";
Read_config_option ("path_rrdtool") is the rrdtool executable file.
$ Fp = popen (read_config_option ("path_rrdtool"). escape_command ("$ command_line"), $ pipe_mode );

If (isset ($ fp) & is_resource ($ fp )){
$ Line = "";
While (! Feof ($ fp )){
$ Line = $ line. fgets ($ fp, 4096 );
}

Pclose ($ fp );

Return $ line;
}

Print $ line;
Then put test. php in img src: img src = "test. php ?...... "


How can I display images in a browser?
------ Solution --------------------
That's all.
Are you confused?
------ Solution --------------------
So let's test. php? Is opened in the browser.
------ Solution --------------------
Check whether there is a BOM header and whether there is content (including spaces and blank lines) outside the php tag)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.