Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于我使用的框架中的文件夹结构(蛋糕),我被迫使用“../../”作为 src 参数的前缀。
<img src="$path_to_phpThumb?src=../../my_image.ext" />
为了获得红色的 "../../" ,建议如何做?
谢谢!
您可以使用别名将请求重定向到图像所在的位置。
即在 apache 中,以下将 src="/img/foo.jpg" 映射到下面的路径
Alias /img /var/www/html/app/webroot/images
我试过这个例子:
#!C:/Perl64/bin/perl.exe $mickey = "Hi i'm Mickey"; $pluto = "Hi i'm Pluto"; print <<EOF; $pluto Hi i'm Goofy $mickey EOF print &