is it possible to embed a document from Google drive with php api -


is possible embed google drive file php api without direct access. trying different methods such file has access "anyone" link

  • file_get_contents
  • curl
  • readfile
header('content-description: file transfer'); header('content-type: application/pdf'); header('content-disposition: inline; filename='.basename($file)); header('content-transfer-encoding: binary'); header('accept-ranges: bytes'); header('expires: 0'); header('cache-control: must-revalidate, post-check=0, pre-check=0'); header('pragma: public'); header('content-length: ' . filesize($file)); ob_clean(); flush(); 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -