I did not pay attention to this problem when I mounted the PHP server to Linux,
A few days ago but encountered in Linux verification code under the picture can not display the situation, found that Linux also has GD library support, so installed the php5-gd (I use PhP5)
This problem has been solved.
Today, I suddenly found that the IMG images could not be displayed. I searched the internet and obtained the following conclusions after testing:
He will search for a pc.jpg image by using the previous example. If you use an absolute path, this will go into a trap.
If the current path is/var/www/test (this path has your picture. php)
In picture. php, it is:
Definitely an error occurs. She will search for/home/wch in the/var/www/test path
The path for searching pc.jpg is
/Var/www/test/home/wch. This path does not exist at all.
It's a bit messy. You will understand the actual operation. As for the use of absolute paths, it is still to be studied.