php-general Digest 8 May 2005 13:53:58 -0000 Issue 3442

Topics (messages 214680 through 214691):

Re: POST long texts to PHP
        214680 by: Richard Lynch
        214682 by: bala chandar

Re: Barcodes [Solved]
        214681 by: Mike Smith

using sockets to load a streaming windows media file
        214683 by: Dan Rossi

Re: Fastest templating mechanism
        214684 by: Joe Wollard
        214685 by: Satyam
        214688 by: Jens Kleikamp

browser detect and redirect
        214686 by: Ross
        214689 by: bala chandar
        214690 by: Heged�s Bal�zs
        214691 by: David Dorward

I'm having a blond moment with a while loop???
        214687 by: George Pitcher

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
On Sat, May 7, 2005 10:42 am, SED said:
> I need to POST long texts through a form to PHP but the text cuts down to
> around 64.000 characters. Is there any way to allow longer texts (like in
> php.ini)?

In addition to the browser limitations on a TEXTAREA, web servers are free
to limit POST data to anything larger than X where X is some number I
forgot.

Call it 64K for fun.

If you need THAT much text, make it a file upload.

http://php.net/manual/features.file-upload.php

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message ---
Hi,

On 5/7/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> First of all, don't hijack threads. Instead of replying to a message,
> create a new one.

i agree with him

> 
> SED wrote:
> > I need to POST long texts through a form to PHP but the text cuts down to
> > around 64.000 characters. Is there any way to allow longer texts (like in
> > php.ini)?

> 
> This is browser limit. Most, if not all, browsers limit textarea field
> length to this value.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
bala> balachandar muruganantham
blog> lynx http://chandar.blogspot.com
web> http://www.chennaishopping.com

--- End Message ---
--- Begin Message ---
Hi JAson,

I'm leaving tomorrow for CA to do some of the testing and workflow.
I'll let you know how it turns out.

--
Mike

On 5/6/05, Jason Barnett <[EMAIL PROTECTED]> wrote:
> Mike Smith wrote:
> > On 4/18/05, Eric Wood <[EMAIL PROTECTED]> wrote:
> >
> >>----- Original Message -----
> >>From: "Mike Smith"
> >>I'm using a script to generate the barcodes (3 of 9 or Code39):
> >>http://www.sid6581.net/cs/php-scripts/barcode/
> >>
> >>This script seems to limit the input barcode to 15 characters... um...
> >>-eric woo
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> > The sample on the website will display image to small for 16
> > characters. There is an options to adjust the widthXheight of the
> > generated image to display more I found the longest part number we had
> > and based my image width on that (+5). There are other options
> > (phpclasses, hotscripts), but this works for now. I may evaluate some
> > other options as I get into it.
> >
> > --
> > Mike
> 
> Hey, did you do any more testing with this?  My company has gone through
> a lot of the parts identification process for our accounting system and
> we're eager to get barcoding set up as well.  Our platform of choice is
> Windows (yeah, yeah) so it would be great to hear some feedback about
> that OS if you've tested on it...
>

--- End Message ---
--- Begin Message --- Hi there, is there anyway possible to load a streaming windows media file via a socket connecting to output its contents to the browser or a windows media object. My issue is I am spitting out an asx playlist file however for some freak reason, whenever i put control logic around where i am outputting the playlist the player craps out saying playlist file format not recognised. Which is why I want to try out this way execpt socket transport doesnt understand mms :) Ie the file would look like mms://thefile
--- End Message ---
--- Begin Message ---
Evert,

Have you looked at smarty (http://smarty.php.net) ? It doesn't do exactly what you're talking about but it seems to be the "Fastest templating mechanism" that I've tested; probably one of the most versatile as well.

Cheers!
-Joe

www.joewollard.com

Evert | Rooftop Solutions wrote:

Hi all,

I'm working on a template system which works a bit like a text translation block. The data looks for example like:

beginblock <div class="block">
endblock </div>
beginauthor <span class="author">
endauthor </div>


The list is going to be very large, it will have several overlays and not all pages need all items in the list. (usually just a fraction)


What will be the smartest way to implement this? I need a low-memory cost and fast solution
I can do it with a php script, like:


$list = array(
 'beginblock' => '<div class="block">',

 etc.

);

but this will use up too much memory. I could additionally do it with a textfile, but if I need to loop through it at every lookup it will be slow..

What are your suggestions?

regards,
Evert


--- End Message ---
--- Begin Message ---
You might try using the first pass of a regular C compiler, the 
pre-compiler, which expands macro definitions.  It shouldn't have any 
problems with the structure of PHP, except for the # comments which it would 
mistake for its own pre-compiler declarations.

Otherwise, may I sugest you check in the archives my own posting with the 
subject "XML/HTML specific instructions"?

Satyam


"Evert | Rooftop Solutions" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi all,
>
> I'm working on a template system which works a bit like a text translation 
> block. The data looks for example like:
>
> beginblock <div class="block">
> endblock </div>
> beginauthor <span class="author">
> endauthor </div>
>
>
> The list is going to be very large, it will have several overlays and not 
> all pages need all items in the list. (usually just a fraction)
>
> What will be the smartest way to implement this? I need a low-memory cost 
> and fast solution
> I can do it with a php script, like:
>
> $list = array(
>  'beginblock' => '<div class="block">',
>
>  etc.
>
> );
>
> but this will use up too much memory. I could additionally do it with a 
> textfile, but if I need to loop through it at every lookup it will be 
> slow..
>
> What are your suggestions?
>
> regards,
> Evert 

--- End Message ---
--- Begin Message ---
Evert | Rooftop Solutions wrote:

> Hi all,
> 
> I'm working on a template system which works a bit like a text
> translation block. The data looks for example like:
> 
> beginblock <div class="block">
> endblock </div>
> beginauthor <span class="author">
> endauthor </div>
> 
> 
> The list is going to be very large, it will have several overlays and
> not all pages need all items in the list. (usually just a fraction)
> 
> What will be the smartest way to implement this? I need a low-memory
> cost and fast solution
> I can do it with a php script, like:
> 
> $list = array(
>   'beginblock' => '<div class="block">',
> 
>   etc.
> 
> );
> 
> but this will use up too much memory. I could additionally do it with a
> textfile, but if I need to loop through it at every lookup it will be
> slow..
> 
> What are your suggestions?
> 
> regards,
> Evert
> 
Have also a look at www.phpsavant.com. Different from smarty,  its a
lightweight object-oriented template engine. 
One neat feature is that you could add optionally your own custom markup
compilers.

Regards,
Jens

--- End Message ---
--- Begin Message ---
I want to redirect anyone not using ie 4+ as there browser.

Is this possible with php?

R. 

--- End Message ---
--- Begin Message ---
Hi,

On 5/8/05, Ross <[EMAIL PROTECTED]> wrote:
> I want to redirect anyone not using ie 4+ as there browser.
> 
> Is this possible with php?

Yes!  you can use get_browser function. 
chec out http://in.php.net/manual/en/function.get-browser.php
> 
> R.
> 
> 

-- 
bala> balachandar muruganantham
blog> lynx http://chandar.blogspot.com
web> http://www.chennaishopping.com

--- End Message ---
--- Begin Message ---
Hi,

I should say RTFM, or just read a bit before you ask, pls.

Anyway take a look at the $_SERVER superglobal or the get_browser() function.

Balazs Hegedus

Ross wrote:

I want to redirect anyone not using ie 4+ as there browser.

Is this possible with php?

R.




--- End Message ---
--- Begin Message ---
Ross wrote:

> I want to redirect anyone not using ie 4+ as there browser.
> 
> Is this possible with php?

You could examine the user agent string, but that can be (and is in many
cases) spoofed.

Its generally better to just write code which doesn't depend on the use of a
specific browser. Its very rare that something really needs IE (At least I
assume that "+" means "higher" rather that "better").

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is

--- End Message ---
--- Begin Message ---
Hi guys,

I'm doing something dumb but I can't see it.

The basic premise is:

sql search of orders sorted by customer
set g_customer_id to ''
loop through resultset
  if customer_id not same as last record's customer_id (g_customer_id)
    get customer email details
    set up message header if this is the first record for a customer
    set item details
  else
    set item details
    set g_customer_id to customer_id
  endif
  send email
end loop

The problem is that as a sample I have two records from one demo customer
(me) and I can only get my email to handle one record - either sending
separate records for each record or one email covering the last record only

Its as if I should have another inner loop

Any tips

MTIA

George

--- End Message ---

Reply via email to