pianoman993 Posted December 28, 2008 Share Posted December 28, 2008 Hello PHP gods, I have a small question for you! I have a small CGI application that uploads audio files. I would like it to check each file it uploads to see how long it is. That is were my GetID3 question comes in. (GetID3 is a PHP script that allows the user to see how long (seconds) a file is). Is it possible to call to use GetID3 in a CGI file? If so please post any code that would help me understand this. Thank you so much. Any help is greatly appreciated!! - Pianoman993 Quote Link to comment https://forums.phpfreaks.com/topic/138620-solved-call-getid3-from-inside-a-cgi-file/ Share on other sites More sharing options...
trq Posted December 28, 2008 Share Posted December 28, 2008 What language is this cgi script written in? Why not rewrite it in php? Quote Link to comment https://forums.phpfreaks.com/topic/138620-solved-call-getid3-from-inside-a-cgi-file/#findComment-724796 Share on other sites More sharing options...
pianoman993 Posted December 28, 2008 Author Share Posted December 28, 2008 I'm not exactly sure what laungage, and I might have a change at converting it... if I had the experience haha. But is it possible to maybe redirect the browser at the end of the CGI file to a PHP file with $_GET URL variables? If so could someone show me what the code for a CGI redirect would look like? - Pianoman993 Quote Link to comment https://forums.phpfreaks.com/topic/138620-solved-call-getid3-from-inside-a-cgi-file/#findComment-724887 Share on other sites More sharing options...
premiso Posted December 28, 2008 Share Posted December 28, 2008 Possibly, if I had the expertise haha. But is it possible to maybe redirect the browser at the end of the CGI file to a PHP file with $_GET URL variables? If so could someone show me what the code for a CGI redirect would look like? - Pianoman993 That is a CGI question...probably best posted at a CGI Forum, cause CGI can be written in a couple different languages (if I remember right). I know it can be written in Perl and I think C++ (not sure on the C++). But yea, it depends on what language it was written in etc. You can google just as well as I can, honestly. Search "Redirect with CGI and Request Variables" Quote Link to comment https://forums.phpfreaks.com/topic/138620-solved-call-getid3-from-inside-a-cgi-file/#findComment-724888 Share on other sites More sharing options...
pianoman993 Posted December 28, 2008 Author Share Posted December 28, 2008 Alright thanks, I'm doing that now. How hard can a redirect be? ... my last dying words.... ... . . Quote Link to comment https://forums.phpfreaks.com/topic/138620-solved-call-getid3-from-inside-a-cgi-file/#findComment-724889 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.