Z GDrive Viewer is a simple PHP script to view/embed google drive folders that uses PHP Simple HTML DOM Parser (Author: S.C. Chen). This scripts displays folders and files in a grid view and provides direct download links for files as well as Google Docs. Unlike the tradition Google Drive embedding method, this script can open subfolders in the same window/iframe. Z GDrive Viewer does not require user to be logged in and only works on publicy shared folders.
Z GDrive Viewer requires PHP 5+.
- Open index.html and enter the Folder ID
- Ensure that the folder is Shared Publicly(❓)
For emdedding a Google Drive Folder, "z_gdrive_viewer_static.php" script must be used (script should be edited to specify the Root Folder ID). HTML iframe can be used to embed, as shown below.
<iframe src="PATH_TO_SCRIPT/z_gdrive_viewer_static.php?ID=ROOT_FOLDER_ID"></iframe>
This Project is liscensed under MIT License.