ridiculous Posted January 20, 2007 Share Posted January 20, 2007 Anyone know of a script or function to trim down an uploaded .mp3 or .mpeg file? Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 20, 2007 Author Share Posted January 20, 2007 Does anyone know if its possible to use the PHP trim() function in this capacity? Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 20, 2007 Share Posted January 20, 2007 p[quote author=ridiculous link=topic=123226.msg509021#msg509021 date=1169266897]Does anyone know if its possible to use the PHP trim() function in this capacity? [/quote]"trim(PHP 3, PHP 4, PHP 5)trim -- Strip whitespace (or other characters) from the beginning and end of a stringDescriptionstring trim ( string str [, string charlist] )"NO.Do you have a problem with google? Both of your questions could be answered faster by you searching than you posting and bumping. Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 21, 2007 Author Share Posted January 21, 2007 Thanks for telling me about Google! I'll have to check it out! Recommended. Helpful. Talented. 189lbs. Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 21, 2007 Share Posted January 21, 2007 I'm proud of my weight, I've lost 16 lbs in less than two months. I also know how to use a fucking search button, and the manual. Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 21, 2007 Author Share Posted January 21, 2007 I'm glad you're proud. Thanks for living up to your reputation. Class act-"talented". Quote Link to comment Share on other sites More sharing options...
ober Posted January 21, 2007 Share Posted January 21, 2007 I think that's about enough. jesi... take it down a notch. Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 21, 2007 Share Posted January 21, 2007 After reading both of his posts though... I can't blame jesi... He's asked stuff that has nothing to do with PHP and been kindly reffered to google. When he starts getting rude well... the word GOOGLE starts getting rude Quote Link to comment Share on other sites More sharing options...
ober Posted January 21, 2007 Share Posted January 21, 2007 Either way, I've seen enough. Both have PMs and this topic doesn't need to go any further. If either of you plan to take this up elsewhere, you'll both get a temp ban. Back off, cool down, and lay off the insults. Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 21, 2007 Author Share Posted January 21, 2007 I'm not going to waste time justifying my comments, but I will say that this air of arrogance is unbecoming of a site that aims to foster reciprocal interaction between PHP enthusiasts at all levels. If one can so easily find a solution to the problem on Google, it would be more of a coup to unveil the link(s) than to initiate condescending remarks. I searched Google. I've scoured the internet for two days and still haven't found a viable solution...and I would hope that in the future those of you who are held out to be "talented" and "experienced" would substantiate your claims of finding external info before you go ASSUME a solution can be found on Google in a matter of seconds. Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 21, 2007 Share Posted January 21, 2007 Try searching for mp3 compression with PHP, if you don't get anything with that there probably isn't a way. Although, you could find more about putting them into zip files by searching for zipping files in PHP. If you can't find it there I'm sure someone here can help with that. Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 21, 2007 Author Share Posted January 21, 2007 Thanks Matt. I was thinking something around the lines of trying to upload them as a BLOB into a MySQL db where the BLOB size was set to my desired file size, thus truncating the MP3. Then I was thinking of trying to retrieve the BLOB, write it as an MP3 into a file on my server and destroy the BLOB.Any thoughts on this? Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 21, 2007 Share Posted January 21, 2007 What I am thinking is to use fopen and rename it to .txt put it into the DB and take it out as .txt rename it to mp3. I have no idea as to if this will work, but it is worth a try. Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted January 21, 2007 Share Posted January 21, 2007 [quote author=jesirose link=topic=123226.msg509338#msg509338 date=1169340665]I'm proud of my weight, I've lost 16 lbs in less than two months. I also know how to use a fucking search button, and the manual.[/quote]jeez.ridiculous... chill the fvck out. try [url=http://www.php.net/preg_replace]preg_replace()[/url] Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 21, 2007 Share Posted January 21, 2007 [quote author=boo_lolly link=topic=123226.msg509439#msg509439 date=1169348389][quote author=jesirose link=topic=123226.msg509338#msg509338 date=1169340665]I'm proud of my weight, I've lost 16 lbs in less than two months. I also know how to use a fucking search button, and the manual.[/quote]jeez.ridiculous... chill the fvck out. try [url=http://www.php.net/preg_replace]preg_replace()[/url][/quote]THAT IS DONE. Please just ignore those posts. We don't want to start MORE problems. Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 21, 2007 Author Share Posted January 21, 2007 Thanks for the tip, Boo Lolly. I'm still studying the function. Quote Link to comment Share on other sites More sharing options...
ridiculous Posted January 21, 2007 Author Share Posted January 21, 2007 Boo...That's pretty sweet. It looks like I can just use preg_split to count the number characters I want to apportion, then simply write that as a separate file...affixing my desired tag. Nice. But, complex. Ever done this? Quote Link to comment Share on other sites More sharing options...
mattd8752 Posted January 21, 2007 Share Posted January 21, 2007 could you show me how you did this? Id like to try putting mp3s in mysql aswell Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted January 21, 2007 Share Posted January 21, 2007 [quote author=ridiculous link=topic=123226.msg509450#msg509450 date=1169349315]Boo...That's pretty sweet. It looks like I can just use preg_split to count the number characters I want to apportion, then simply write that as a separate file...affixing my desired tag. Nice. But, complex. Ever done this? [/quote]of course, that's how i knew about it to begin with. there are many ways it can be done. just remember it's all a learning process. you may want to think about taking this opportunity to get into [url=http://www.cc.gatech.edu/classes/RWL/Projects/citation/Docs/Design/regex.intro.1.doc.html]regex[/url]. Quote Link to comment 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.