Execution ofhead.exe/tail.exe and md5sum.exe on Windows IIS

The place for "I can't figure out how to..." questions.

Execution ofhead.exe/tail.exe and md5sum.exe on Windows IIS

Postby PatPowerMan » Fri Jan 07, 2005 8:38 am

I have a strange problem with the demo.mysql.php:

If I try to scan the local (on the webserver) stored mp3 called
L.A. STYLE (James Brown is dead).mp3 :wink:
everything works fine - I get a green (OK).
The file size shown in explorer is 3'285kb.

Any other file tried out produces the following (example-)error:
Warning: shell exec(): Unable to execute
'C:\PathToHelperapps\head.exe -c 3624960 "C:\PathTomp3\mp3filename.mp3" | C:\PathToHelperapps\tail.exe -3582328 | C:\PathToHelperapps\md5sum.exe' in C:\PathToPHPCode\getid3.lib.php on line 681.
(The file size shown in explorer is 3'541kb.)


The line 681 ist the last line of the function hash_data.

Why can this function be executed for the one file without problem (data are written to the mysql-db) and crashes for many others?
PatPowerMan
User
 
Posts: 10
Joined: Sun Oct 31, 2004 9:51 am

Postby Guest » Fri Jan 07, 2005 9:40 am

I tried to scan some more mp3.

It seems that every mp3 without tags (artist, title, album, genre, comment, track) has no problems.
As soon as tags are stored in a mp3 (and written to the mysql-db) the error appears.

Can this info help?
Guest
 

Postby Allan Hansen » Sat Jan 08, 2005 5:14 am

Anonymous wrote:I tried to scan some more mp3.

It seems that every mp3 without tags (artist, title, album, genre, comment, track) has no problems.
As soon as tags are stored in a mp3 (and written to the mysql-db) the error appears.

Can this info help?


No. md5/sha1 checksums are calculated using built in functions for tagless mp3s.
Allan Hansen
getID3() v2 developer
 
Posts: 445
Joined: Sun May 04, 2003 9:22 am
Location: Holmegaard, Denmark

Postby Allan Hansen » Sat Jan 08, 2005 5:22 am

1. Make sure the helper apps are present in a path without spaces in them.
2. Make sure the webserver can access the helper apps files.
3. Make sure the webserver can access the audio files.
4. Make sure you are using stable versions of PHP and getID3() - i.e. PHP4.3 and getID 1.7.2.
5. Make sure PHP is not running in safe mode.
Allan Hansen
getID3() v2 developer
 
Posts: 445
Joined: Sun May 04, 2003 9:22 am
Location: Holmegaard, Denmark

Postby Guest » Sat Jan 08, 2005 5:31 pm

It seems the point 4 was the problem: Version of PHP was < 4.3

Thank you for you help!!
Guest
 

Postby PatPowerMan » Sat Jan 08, 2005 5:32 pm

Sorry, not logged in... :oops:
PatPowerMan
User
 
Posts: 10
Joined: Sun Oct 31, 2004 9:51 am


Return to Support 1.x

Who is online

Users browsing this forum: No registered users and 3 guests

cron