-
php显示图片
一、使用php函数file_get_contents()函数把整个文件读入到一个字符串中返回值the function returns the read data或者失败返回false<?phpheader('content-type:image/jpg;');$content = file_get_contents('1.jpg');echo $content;二、echo+img<?phpecho "<img src='1.jpg' />";…
-
test
test:testclass Demo { public function hello() { return __METHOD__; }}$obj = new Demo;echo $obj->hello(); Demo::hellofile_get_contents()函数把整个文件读入到一个字符串中…