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
Post a Comment