php-general Digest 7 May 2005 13:18:21 -0000 Issue 3440

2005-05-07 Thread php-general-digest-help
php-general Digest 7 May 2005 13:18:21 - Issue 3440 Topics (messages 214657 through 214670): Re: Reducing size of htm output 214657 by: Marek Kilimajer 214659 by: Rory Browne 214661 by: M. Sokolewicz 214664 by: Dotan Cohen 214666 by: Dotan Cohen

[PHP] buffering headers before send

2005-05-07 Thread Claudio
Hi, is there a way to buffering headers before sending like ob_start() ? Thanks, Claudio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reducing size of htm output

2005-05-07 Thread Rory Browne
First of all as Rasmus said, this 'compression' is barely(if at all) going to make a difference, after your pages have been compressed wth gzip, There are two reasons for this: 1 compression techniques detect repeated strings(such as spaces or newlines), and replaces them with one instance of

[PHP] Re: buffering headers before send

2005-05-07 Thread M. Sokolewicz
Claudio wrote: Hi, is there a way to buffering headers before sending like ob_start() ? Thanks, Claudio ob_start buffers both `normal` output AND headers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reducing size of htm output

2005-05-07 Thread M. Sokolewicz
Rory Browne wrote: First of all as Rasmus said, this 'compression' is barely(if at all) going to make a difference, after your pages have been compressed wth gzip, There are two reasons for this: 1 compression techniques detect repeated strings(such as spaces or newlines), and replaces them with

[PHP] expression between vertical bars

2005-05-07 Thread Jan
Hello, Could someone explain to me the use of the vertical bar in expressions like |[^]+(.*)/[^]+|U. I understand that the vertical bars are used to separate the expression from the modifier, but can't find any documentation about the reasons and rules to do this. Thanks, Jan

Re: [PHP] compiling dynamic extensions without root access

2005-05-07 Thread Dan Rossi
On 07/05/2005, at 3:16 AM, Rory Browne wrote: It depends: What webserver are you using? PHP/Apache will let you load extensions using .htaccess, which can be your own extensions, located in a directory that you have write access to. I've never tried it but something like php_extension_dir

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Dotan Cohen
On 5/7/05, M. Sokolewicz [EMAIL PROTECTED] wrote: Rory Browne wrote: First of all as Rasmus said, this 'compression' is barely(if at all) going to make a difference, after your pages have been compressed wth gzip, There are two reasons for this: 1 compression techniques detect

[PHP] Re: buffering headers before send

2005-05-07 Thread Claudio
M. Sokolewicz [EMAIL PROTECTED] schrieb im Newsbeitrag ob_start buffers both `normal` output AND headers. Humm, now it works... Is there something else that must be set, so that ob_start() works or not? Something like an php.ini entry? Here is the listing of ob_start.php5 ?php ob_start(); echo

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Dotan Cohen
On 5/7/05, M. Sokolewicz [EMAIL PROTECTED] wrote: Rory Browne wrote: First of all as Rasmus said, this 'compression' is barely(if at all) going to make a difference, after your pages have been compressed wth gzip, There are two reasons for this: 1 compression techniques detect

[PHP] Re: expression between vertical bars

2005-05-07 Thread Matthew Weier O'Phinney
* Jan [EMAIL PROTECTED]: Could someone explain to me the use of the vertical bar in expressions like |[^]+(.*)/[^]+|U. I understand that the vertical bars are used to separate the expression from the modifier, but can't find any documentation about the reasons and rules to do this. This

[PHP] Java in PHP5

2005-05-07 Thread Dan Rossi
Ok So I am looking at two possibilities of java integration, one via command line and one using the extension. I dont particularly want the experimental pecl extensions in my php therefore I want it dynamically loaded. I cant for the life of me find the Java extension, would anyone know where

Re: [PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-07 Thread Deep
Hi, If you are using localhost, i dont think u need to specify the port number. Localhost would be enough. Also pls check the user privileges and all in the database. ..Deep.. --- Oscar Andersson [EMAIL PROTECTED] wrote: I have made a instal of the latest mySQL and PHP 5 on my computer. I

[PHP] Random but ordered..

2005-05-07 Thread Ryan A
Hey, I have been screwing around with this code for around a day and am hitting a wall, any help would be appreciated. Basically, I am working on a site that queries the DB for companies and the plans the company is offering, the DB is quite big (a few thousand records in each of the 20 tables)

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Mark Charette
M. Sokolewicz wrote: Rory Browne wrote: What might be more useful is stripping out comments, If you don't use javascript it is simply a case of replacing all !-- anything -- with a blank space. If you do though it's more complicated since it is considered good practice to place js inside !--

Re: [PHP] Random but ordered..

2005-05-07 Thread Marek Kilimajer
Ryan A wrote: Hey, I have been screwing around with this code for around a day and am hitting a wall, any help would be appreciated. Basically, I am working on a site that queries the DB for companies and the plans the company is offering, the DB is quite big (a few thousand records in each of the

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Rory Browne
excuse me? since when is this considered /good/ practice??? It's one of those things that are concidered /bad/ practice according to w3... Hmmm, didn't know the w3c had an opinion on the usage of !-- //-- tags to delimit javascript. I've always been recommended to use them, to hide the script

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Rory Browne
Besides, whether or not it's considered good practice to comment out js to non-js-capable browsers, a lot of people do it. And for the record, I wouldn't condone the removal of comments from code that someone may need to read sometime. HTML outputted from php is generally however only meant for

Re: [PHP] compiling dynamic extensions without root access

2005-05-07 Thread Dan Rossi
On 08/05/2005, at 1:03 AM, Rory Browne wrote: I believe(although I stand to be corrected, that there is a threading MLM on apache 2 - this would rule out dl() AFAIK We're not using Apache2 yet coz of the thread issue with php however i am setting up a prefork setup for development. -- PHP

[PHP] POST long texts to PHP

2005-05-07 Thread SED
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)? Regards, SED -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST long texts to PHP

2005-05-07 Thread Marek Kilimajer
First of all, don't hijack threads. Instead of replying to a message, create a new one. 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

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread M. Sokolewicz
Seems I'm going a bit too far here :) The URL quotes which states to denote JS between !-- -- comment tags is from the HTML 4.0 page. I've been reading lots of XHTML recommendations lately, and have become accustomed to those. In those, when a script isn't understood, it's ignored. Besides that

[PHP] Fastest templating mechanism

2005-05-07 Thread Evert | Rooftop Solutions
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

Re: [PHP] Re: Barcodes [Solved]

2005-05-07 Thread Mike Smith
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

Re: [PHP] POST long texts to PHP

2005-05-07 Thread Richard Lynch
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

Re: [PHP] POST long texts to PHP

2005-05-07 Thread bala chandar
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

[PHP] using sockets to load a streaming windows media file

2005-05-07 Thread Dan Rossi
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

Re: [PHP] Fastest templating mechanism

2005-05-07 Thread Joe Wollard
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,