echo '<img src="../../images/delete.png" id="aaa" />aaa '; (working fine)
//define('ROOT_DIR', dirname(__FILE__)); is in a file at root folder.
//i able to use this ROOT_DIR to include class files without any problem
//BUT, when I use it with photo image, it just not working!
echo '<img src="'.ROOT_DIR.'/images/delete.png" id="bbb" />bbb';
伙计们,任何想法有什么不对?图像文件无法正常工作的绝对路径