getID3() by James Heinrich info@.nosp@m.geti.nosp@m.d3.or.nosp@m.g //
More...
◆ CleanVorbisCommentName() [1/2]
getid3_write_vorbiscomment::CleanVorbisCommentName |
( |
|
$originalcommentname | ) |
|
Definition at line 108 of file write.vorbiscomment.php.
116 return strtoupper(preg_replace(
'#[^ -<>-}]#',
' ', str_replace(
"\x00",
' ', $originalcommentname)));
◆ CleanVorbisCommentName() [2/2]
getid3_write_vorbiscomment::CleanVorbisCommentName |
( |
|
$originalcommentname | ) |
|
◆ DeleteVorbisComment() [1/2]
getid3_write_vorbiscomment::DeleteVorbisComment |
( |
| ) |
|
◆ DeleteVorbisComment() [2/2]
getid3_write_vorbiscomment::DeleteVorbisComment |
( |
| ) |
|
◆ getid3_write_vorbiscomment() [1/2]
getid3_write_vorbiscomment::getid3_write_vorbiscomment |
( |
| ) |
|
◆ getid3_write_vorbiscomment() [2/2]
getid3_write_vorbiscomment::getid3_write_vorbiscomment |
( |
| ) |
|
◆ WriteVorbisComment() [1/2]
getid3_write_vorbiscomment::WriteVorbisComment |
( |
| ) |
|
Definition at line 29 of file write.vorbiscomment.php.
References CleanVorbisCommentName().
Referenced by DeleteVorbisComment().
31 if (!ini_get(
'safe_mode')) {
34 $tempcommentsfilename = tempnam(
'*',
'getID3');
35 if ($fpcomments = @fopen($tempcommentsfilename,
'wb')) {
37 foreach ($this->tag_data as $key => $value) {
38 foreach ($value as $commentdata) {
46 $this->errors[] =
'failed to open temporary tags file "'.$tempcommentsfilename.
'", tags not written';
51 $oldignoreuserabort = ignore_user_abort(
true);
52 if (GETID3_OS_ISWINDOWS) {
54 if (file_exists(GETID3_HELPERAPPSDIR.
'vorbiscomment.exe')) {
65 $timestampbeforewriting = filemtime($this->filename);
67 $commandline = GETID3_HELPERAPPSDIR.
'vorbiscomment.exe -w --raw -c "'.$tempcommentsfilename.
'" "'.$this->filename.
'" 2>&1';
68 $VorbiscommentError = `$commandline`;
70 if (empty($VorbiscommentError)) {
72 if ($timestampbeforewriting == filemtime($this->filename)) {
73 $VorbiscommentError =
'File modification timestamp has not changed - it looks like the tags were not written';
77 $VorbiscommentError =
'vorbiscomment.exe not found in '.GETID3_HELPERAPPSDIR;
82 $commandline =
'vorbiscomment -w --raw -c "'.$tempcommentsfilename.
'" "'.$this->filename.
'" 2>&1';
83 $VorbiscommentError = `$commandline`;
88 unlink($tempcommentsfilename);
89 ignore_user_abort($oldignoreuserabort);
91 if (!empty($VorbiscommentError)) {
93 $this->errors[] =
'system call to vorbiscomment failed with message: '.
"\n\n".$VorbiscommentError;
101 $this->errors[] =
'PHP running in Safe Mode (backtick operator not available) - cannot call vorbiscomment, tags not written';
◆ WriteVorbisComment() [2/2]
getid3_write_vorbiscomment::WriteVorbisComment |
( |
| ) |
|
Definition at line 30 of file write.vorbiscomment.php.
References CleanVorbisCommentName().
32 if (preg_match(
'#(1|ON)#i', ini_get(
'safe_mode'))) {
33 $this->errors[] =
'PHP running in Safe Mode (backtick operator not available) - cannot call vorbiscomment, tags not written';
38 $tempcommentsfilename = tempnam(GETID3_TEMP_DIR,
'getID3');
39 if (is_writable($tempcommentsfilename) && is_file($tempcommentsfilename) && ($fpcomments = fopen($tempcommentsfilename,
'wb'))) {
41 foreach ($this->tag_data as $key => $value) {
42 foreach ($value as $commentdata) {
49 $this->errors[] =
'failed to open temporary tags file "'.$tempcommentsfilename.
'", tags not written';
53 $oldignoreuserabort = ignore_user_abort(
true);
54 if (GETID3_OS_ISWINDOWS) {
56 if (file_exists(GETID3_HELPERAPPSDIR.
'vorbiscomment.exe')) {
67 $timestampbeforewriting = filemtime($this->filename);
69 $commandline = GETID3_HELPERAPPSDIR.
'vorbiscomment.exe -w --raw -c "'.$tempcommentsfilename.
'" "'.$this->filename.
'" 2>&1';
70 $VorbiscommentError = `$commandline`;
72 if (empty($VorbiscommentError)) {
74 if ($timestampbeforewriting == filemtime($this->filename)) {
75 $VorbiscommentError =
'File modification timestamp has not changed - it looks like the tags were not written';
79 $VorbiscommentError =
'vorbiscomment.exe not found in '.GETID3_HELPERAPPSDIR;
84 $commandline =
'vorbiscomment -w --raw -c "'.$tempcommentsfilename.
'" "'.$this->filename.
'" 2>&1';
85 $VorbiscommentError = `$commandline`;
90 unlink($tempcommentsfilename);
91 ignore_user_abort($oldignoreuserabort);
93 if (!empty($VorbiscommentError)) {
95 $this->errors[] =
'system call to vorbiscomment failed with message: '.
"\n\n".$VorbiscommentError;
◆ $errors
getid3_write_vorbiscomment::$errors = array() |
◆ $filename
getid3_write_vorbiscomment::$filename |
◆ $tag_data
getid3_write_vorbiscomment::$tag_data |
◆ $warnings
getid3_write_vorbiscomment::$warnings = array() |
The documentation for this class was generated from the following file: