Jump to content

Recommended Posts

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 string
Description
string 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.
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.
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.
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 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 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 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].
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.