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)