2012-11-13 1 views
-1

도메인 이름을 Google 드라이브로 지정할 수 있습니까?도메인 이름을 내 Google 드라이브로 지정할 수 있습니까?

+1

무슨 말씀 이세요? – woz

+0

Google 계정이 있고 Google 드라이브에 일부 파일이 있습니다.이 드라이브에 도메인 이름 (www.something.com)을 지정할 수 있습니까? Google 드라이브를 웹 호스트로 사용하는 다른 방법 –

+0

아니요, 정말로 아닙니다. . ''을 (를) 사용하는 공용 파일이거나 파일을 스트리밍하는 경우 사이트 URL을 파일의 URL로 리디렉션 할 수 있지만 서버에서 사용중인 언어를 모르겠습니다. – woz

답변

1

아마도 PHP에서는 readfile을 사용할 수 있습니다.

<?php 
    $file = 'monkey.gif'; 

    if (file_exists($file)) { 
     header('Content-Description: File Transfer'); 
     header('Content-Type: application/octet-stream'); 
     header('Content-Disposition: attachment; filename='.basename($file)); 
     header('Content-Transfer-Encoding: binary'); 
     header('Expires: 0'); 
     header('Cache-Control: must-revalidate'); 
     header('Pragma: public'); 
     header('Content-Length: ' . filesize($file)); 
     ob_clean(); 
     flush(); 
     readfile($file); 
     exit; 
    } 
?> 

대중 파일의 URL로 monkey.gif 교체 : 여기가주는 예입니다.

관련 문제