RE: [PHP] Script feedback: insert string into another string
| From: | Brad Sumrall | Date: | Sat, 28 Apr 2007 22:10:48 +0000 |
| Subject: | RE: [PHP] Script feedback: insert string into another string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254084@lists.php.net to get a copy of this message | ||
But!!!!!
I am now noticing that the main page provides cookies called
_utma
_utmb
_utmc
_utmz
Hmmmmmmmmmmm
Brad
-----Original Message-----
From: Richard Lynch [mailto:ceo@l-i-e.com]
Sent: Saturday, April 28, 2007 3:48 PM
To: micky@ambiguism.com
Cc: php php
Subject: Re: [PHP] Script feedback: insert string into another string
Without reading source, it sounds like you've just re-invented this:
http://php.net/wordwrap
:-)
On Sat, April 28, 2007 12:32 am, Micky Hulse wrote:
> Hi,
>
> I pieced-together a script that will insert a string into another
> string
> at a set interval of words... See here:
>
> <http://www.ambiguism.com/sandbox/truncate/truncate.php>
>
> [Click the "view source" link to view source.] :D
>
> Basically, I need a setup a page where my client can paste an article,
> automate the insertion of a template tag (in this case: {page_break})
> and then copy/paste into the blog/cms. My goal for this script was to
> make it easy for the CMS to create word-balanced pages.
>
> Long story short, I got what I think will be an acceptable script...
> but
> I would love to get feedback. What do you think? What can I improve?
> What am I doing wrong?
>
> The script does not need to be super-robust, but would love to hear
> what
> the PHP gurus have to say. ;)
>
> Many thanks in advance!
> Cheers,
> Micky
>
> --
> Wishlists: <http://snipurl.com/1gqpj>
> Switch: <http://browsehappy.com/>
> BCC?: <http://snipurl.com/w6f8>
> My: <http://del.icio.us/mhulse>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php