이 프로젝트에서 공용 폴더 외부에있는 폴더로 admin 제출 파일을 업로드합니다.공용 폴더 외부에있는 이미지를 반향하는 방법
/web/ (the public folder)
/upload/ (uploading image to this which is at the same level as the public folder)
지금 allthough 나는 절대 URL (/www/userid/upload/
)를 사용하여 uplaod 수 있어요, 나는 상대 또는 절대 중 URL을 사용하여 동일한 이미지를 에코 드릴 수 없습니다.
나는 <img src="/www/userid/upload/photo.jpg" />
과 <img src="../upload/photo.jpg" />
을 시도했지만 아무도 작동하지 않습니다. 어떤 힌트?
[php 링크가 기본 웹 디렉토리 외부의 이미지 파일] 가능한 복제본 (http://stackoverflow.com/questions/258365/php-link-to-image-file-outside-default-web-directory) ** 또는 ** http://stackoverflow.com/questions/19979537/how-can-i-show-the-images-outside-the-web-root-directory-in-my-php-application ** 또는 ** http : //stackoverflow.com/questions/11270931/displaying-images-from-outside-the-site-root ** 또는 ** http://stackoverflow.com/questions/17750639/how-to-view-an-image -outside-of-web-root – j08691
공용 폴더 외부에 웹 참조를 사용할 수 없으므로 웹 서버에 가상 디렉터리로 "업로드"를 포함시켜야합니다. – cardeol