[PHP] str_replace around a character??

2011-07-13 Thread Karl DeSaulniers

Hello All,
I am needing some assistance. I am trying to add some Cc and Bcc to a  
mail script I have.
On the form I have instructions for each to be separated by a comma +  
a space.
In an all perfect world each user would do this perfectly. ...but  
since were working with something different,

how can I check for this? and catch any that dont do this perfectly?

Is there a reg exp that covers this? I have seen many, but some make  
the head cramp. Mi mui novicio.

To wrap it up, I am basically trying to do this...

$cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com ,  
ema...@domain.com, "


to be

$cc = "ema...@domain.com, ema...@doamin.com, ema...@domain.com,  
ema...@domain.com"


Any pointers would be much appreciated.
TIA
Best Regards,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



Re: [PHP] str_replace around a character??

2011-07-13 Thread Jay Ess

On 2011-07-13 09:54, Karl DeSaulniers wrote:


$cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com , 
ema...@domain.com, " 


$cc = trim($cc,",");
$result = preg_replace('/(\s?)(,)(\s?)/i', ',', $cc);


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] str_replace around a character??

2011-07-13 Thread Vitalii Demianets
On Wednesday 13 July 2011 11:09:45 Jay Ess wrote:
> On 2011-07-13 09:54, Karl DeSaulniers wrote:
> > $cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com ,
> > ema...@domain.com, "
>
> $cc = trim($cc,",");
> $result = preg_replace('/(\s?)(,)(\s?)/i', ',', $cc);

The solution is broken because of:
1) you have missed spaces after comma in two places. It should be like this:
$cc = trim($cc,", "); // <- here space after comma in the second argument
$result = preg_replace('/(\s?)(,)(\s?)/i', ', ', $cc); // <-- the same, here 
space after comma in replacement string.

2) it doesn't work with address lines like this:

To: "Some   strange ,, person name" 

-- 
Vitalii

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] str_replace around a character??

2011-07-13 Thread Jay Ess

On 2011-07-13 10:36, Vitalii Demianets wrote:

On Wednesday 13 July 2011 11:09:45 Jay Ess wrote:

On 2011-07-13 09:54, Karl DeSaulniers wrote:

$cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com ,
ema...@domain.com, "

$cc = trim($cc,",");
$result = preg_replace('/(\s?)(,)(\s?)/i', ',', $cc);

The solution is broken because of:
1) you have missed spaces after comma in two places. It should be like this:
$cc = trim($cc,", "); //<- here space after comma in the second argument
$result = preg_replace('/(\s?)(,)(\s?)/i', ', ', $cc); //<-- the same, here
space after comma in replacement string.

Yes, that was pretty sloppy of me hehe.


2) it doesn't work with address lines like this:

To: "Some   strange ,, person name"

That was never the requirement ;)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] str_replace around a character??

2011-07-13 Thread Shiplu Mokaddim
 If you are looking for a one liner reg ex, it may take some time. This may 
lead wasting your development time. Better you do the following,

1. replace the string with tokens in address.
2. Split using comma.
3. Apply common email regex.
4. Replace tokens with actual strings.
5. Rebuild/join the string with ", "

With this approach you can validate individual emails too.


Sent from a handheld device


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-13 Thread Marc Guay
> What type of file are you trying to print?

HTML.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-13 Thread Marc Guay
> What type of file are you trying to print?  I'm not very familiar with
> Microsoft Windows but I know a little about it.  Have you considered Windows
> Powershell?  Unfortunately you would essentially have to write a powershell
> script and use the PHP exec functions.  Windows 7 shipped with PowerShell
> 2.0.

Hi Wayne,

Thanks for this tip, I just printed a document from the PowerShell 2.0
command line; I think this might be the path to take.

Marc

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-13 Thread Marc Guay
>> What type of file are you trying to print?  I'm not very familiar with
>> Microsoft Windows but I know a little about it.  Have you considered Windows
>> Powershell?  Unfortunately you would essentially have to write a powershell
>> script and use the PHP exec functions.  Windows 7 shipped with PowerShell
>> 2.0.

It actually is starting to look like in order to print HTML using this
method I'd have to instantiate a COM object in the shell, which I
could just do directly with PHP's built-in COM stuff.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: str_replace around a character??

2011-07-13 Thread Shawn McKenzie
On 07/13/2011 02:54 AM, Karl DeSaulniers wrote:
> Hello All,
> I am needing some assistance. I am trying to add some Cc and Bcc to a
> mail script I have.
> On the form I have instructions for each to be separated by a comma + a
> space.
> In an all perfect world each user would do this perfectly. ...but since
> were working with something different,
> how can I check for this? and catch any that dont do this perfectly?
> 
> Is there a reg exp that covers this? I have seen many, but some make the
> head cramp. Mi mui novicio.
> To wrap it up, I am basically trying to do this...
> 
> $cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com ,
> ema...@domain.com, "
> 
> to be
> 
> $cc = "ema...@domain.com, ema...@doamin.com, ema...@domain.com,
> ema...@domain.com"
> 
> Any pointers would be much appreciated.
> TIA
> Best Regards,
> 
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
> 
> 
$cc = implode(', ', array_filter(array_map('trim', explode(',', $cc;

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: str_replace around a character??

2011-07-13 Thread Florian Lemaitre

Le 13/07/2011 16:59, Shawn McKenzie a écrit :

On 07/13/2011 02:54 AM, Karl DeSaulniers wrote:

Hello All,
I am needing some assistance. I am trying to add some Cc and Bcc to a
mail script I have.
On the form I have instructions for each to be separated by a comma + a
space.
In an all perfect world each user would do this perfectly. ...but since
were working with something different,
how can I check for this? and catch any that dont do this perfectly?

Is there a reg exp that covers this? I have seen many, but some make the
head cramp. Mi mui novicio.
To wrap it up, I am basically trying to do this...

$cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com ,
ema...@domain.com, "

to be

$cc = "ema...@domain.com, ema...@doamin.com, ema...@domain.com,
ema...@domain.com"

Any pointers would be much appreciated.
TIA
Best Regards,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



$cc = implode(', ', array_filter(array_map('trim', explode(',', $cc;


This should work just fine ;).

$cc = implode(', ', array_filter(filter_var_array(array_map('trim', 
explode(',', $cc)), FILTER_VALIDATE_EMAIL)));



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] What is a label?

2011-07-13 Thread Tim Streater
Looking over the definition of a function today I see:

Function names follow the same rules as other labels in PHP.

but I can't find the definition of a label anywhere. I can't see it listed in 
the contents - have I overlooked it? If not, how can I request the the doccy be 
updated?

Tim Streater
Bedford House
Kake St
Waltham  CT4 5RZ
01227 700322

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: str_replace around a character??

2011-07-13 Thread Karl DeSaulniers


On Jul 13, 2011, at 9:59 AM, Shawn McKenzie wrote:


On 07/13/2011 02:54 AM, Karl DeSaulniers wrote:

Hello All,
I am needing some assistance. I am trying to add some Cc and Bcc to a
mail script I have.
On the form I have instructions for each to be separated by a  
comma + a

space.
In an all perfect world each user would do this perfectly. ...but  
since

were working with something different,
how can I check for this? and catch any that dont do this perfectly?

Is there a reg exp that covers this? I have seen many, but some  
make the

head cramp. Mi mui novicio.
To wrap it up, I am basically trying to do this...

$cc = "ema...@domain.com ,ema...@doamin.com,ema...@domain.com ,
ema...@domain.com, "

to be

$cc = "ema...@domain.com, ema...@doamin.com, ema...@domain.com,
ema...@domain.com"

Any pointers would be much appreciated.
TIA
Best Regards,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


$cc = implode(', ', array_filter(array_map('trim', explode(',',  
$cc;


--
Thanks!
-Shawn
http://www.spidean.com



Thanks Shawn,
I had actually found the same thing myself..

$subCc = array_map('trim',explode(",",$subCc));

But I could not find my post last night to make a new comment about it.
Thank you for yours though.. I did not think of the implode part.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is a label?

2011-07-13 Thread Micky Hulse
They must mean labels as in "general naming convention rules for
programming"... Like not naming a variable/function "label" with a number at
the front.

Here's a page about variables:

http://www.php.net/manual/en/language.variables.basics.php

Variable names follow the same rules as other labels in PHP. A valid
variable name starts with a letter or underscore, followed by any
number of letters, numbers, or underscores. As a regular expression,
it would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'

But I agree though, it would be nice if "label" was defined somewhere
in the docs.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: Re: [PHP] What is a label?

2011-07-13 Thread Tim Streater
On 13 Jul 2011 at 22:39, Micky Hulse  wrote: 

> They must mean labels as in "general naming convention rules for
> programming"... Like not naming a variable/function "label" with a number at
> the front.
>
> Here's a page about variables:
>
> http://www.php.net/manual/en/language.variables.basics.php
>
> Variable names follow the same rules as other labels in PHP. A valid
> variable name starts with a letter or underscore, followed by any
> number of letters, numbers, or underscores. As a regular expression,
> it would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'

Except that variables are case-sensitive whereas function names are not. And if 
there's going to be a formal or "programmatic" definition, then I think I'd 
prefer BNF to a regexp.

--
Cheers  --  Tim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Most popular word sorting

2011-07-13 Thread Ron Piggott

Is it possible in PHP to sort an array by most frequently occurring word / 
phrase, 2nd most frequently occurring, third, etc.

An example array is:

Array ( [1] => Parable [2] => Mustard [3] => Seed [4] => Parable [5] => Good 
[6] => Samaritan [7] => Parable [8] => Workers [9] => Vineyard [10] => Parable 
[11] => Lost [12] => Sheep [13] => Parable [14] => Lost [15] => Coin [16] => 
Parable [17] => Prodigal [18] => Parable [19] => Sower [20] => Parable [21] => 
Weeds [22] => Parable [23] => Hidden [24] => Treasure [25] => Parable [26] => 
Parable [27] => Wedding [28] => Banquet [29] => Parable [30] => Virgins [31] => 
Parable [32] => Bags [33] => Gold [34] => Parable [35] => Yeast ) 

The most popular word is “Parable”.  I would like it to be the first result.  
Then the second most popular word is “Lost”.  
Then all the remaining words are only used once.  

Ron

The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info  


[PHP] Your language sucks because...

2011-07-13 Thread Daevid Vincent
(at the risk of starting another $h!t storm like the last time)
 
http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because:
 
;-)
 


Re: [PHP] Most popular word sorting

2011-07-13 Thread Stuart Dallas

On Wednesday, 13 July 2011 at 23:30, Ron Piggott wrote:

> Is it possible in PHP to sort an array by most frequently occurring word / 
> phrase, 2nd most frequently occurring, third, etc.
> 
> An example array is:
> 
> Array ( [1] => Parable [2] => Mustard [3] => Seed [4] => Parable [5] => Good 
> [6] => Samaritan [7] => Parable [8] => Workers [9] => Vineyard [10] => 
> Parable [11] => Lost [12] => Sheep [13] => Parable [14] => Lost [15] => Coin 
> [16] => Parable [17] => Prodigal [18] => Parable [19] => Sower [20] => 
> Parable [21] => Weeds [22] => Parable [23] => Hidden [24] => Treasure [25] => 
> Parable [26] => Parable [27] => Wedding [28] => Banquet [29] => Parable [30] 
> => Virgins [31] => Parable [32] => Bags [33] => Gold [34] => Parable [35] => 
> Yeast ) 
> 
> The most popular word is “Parable”. I would like it to be the first result. 
> Then the second most popular word is “Lost”. 
> Then all the remaining words are only used once.

If I'd have spent two minutes reading the array section of the manual first I'd 
have found this... http://php.net/array_count_values

But I didn't, so I wrote this... https://gist.github.com/1081541

Meh!

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Your language sucks because...

2011-07-13 Thread Micky Hulse
Under the CSS section:

No way to modularize or programmatically generate lengths. Can't say:
{ width:50% - 2px; }

That's so true!! I wish I could do the above...

Oh, and why is the PHP section so damned long?!?

Good read, thanks. :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Your language sucks because...

2011-07-13 Thread Lester Caine

Daevid Vincent wrote:

(at the risk of starting another $h!t storm like the last time)

http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because:


Perhaps when they get around to checking the facts ... most of the content will 
be deleted? A number of the -ve's I'd personally flag as +ve's and complain if 
anybody changed them ...

Generally I'd say the whole page simply sucks :)

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Your language sucks because...

2011-07-13 Thread Florian Müller

Well . do you have any hobbies or such?
I think if you like it to complain about languages sucking and so on, please do 
NOT spam this mailing list with this really USELESS content.
There are some people out there who are using these languages for some good 
reasons, and I guess they give a f*ck on somebody telling that all languages 
suxx.
Please ask somebody for a hobby.

> Date: Thu, 14 Jul 2011 01:59:27 +0100
> From: les...@lsces.co.uk
> To: php-general@lists.php.net
> Subject: Re: [PHP] Your language sucks because...
> 
> Daevid Vincent wrote:
> > (at the risk of starting another $h!t storm like the last time)
> >
> > http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because:
> 
> Perhaps when they get around to checking the facts ... most of the content 
> will 
> be deleted? A number of the -ve's I'd personally flag as +ve's and complain 
> if 
> anybody changed them ...
> Generally I'd say the whole page simply sucks :)
> 
> -- 
> Lester Caine - G8HFL
> -
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - http://www.firebirdsql.org/index.php
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
  

Re: [PHP] PHP control structure

2011-07-13 Thread Tamara Temple


On Jul 12, 2011, at 10:11 PM, Chris Stinemetz wrote:


Hey all,

I would like to add an if statement to the following function so that
the value 1 is assigned "corporate" and the value is 2 assign
"standard" to it.  Would you show me an example on adding it to the
below function? If there is a better way to reassign the value please
share.

Thank you,

Chris

public function ShowType()
{
$sql = "SELECT DISTINCT store_type FROM store_list WHERE
id_markets=$_POST[id]";
$res = mysql_query($sql,$this->conn);
$Type = 'store type...';
while($row = mysql_fetch_array($res))
{
$Type .= '' .
$row['store_type'] . '';
}
return $Type;
}

--  
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php



I'm really not at all clear what you want to do here. Where and how  
are the values going to be used? Where is it determined something is  
"corporate" or "standard"? What do these things mean in the context of  
your application?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Your language sucks because...

2011-07-13 Thread Alex Nikitin
I'm actually interested in finding out if there are any languages that don't
suck in any way... I know and have programmed in about 29, i have yet to
find a language that makes 100% sense and i have no complaints about.
However i still choose PHP over many, many other languages and i implement
php apis because its such an easy to learn, versatile, and as advanced as
you want to make it language; i mean i've written vfat in php for fun, as
well as self-documenting or self-correcting libraries with reflection,
advanced sorting algorithms (like a pimped radix sort that did positive, and
negative integers and floats), and yet teach people how to write stuff in
php in minutes, people never exposed to programming...

In short, PHP does suck, but so do all languages, so when compared, php
actually doesn't suck anywhere near as much as some other oftenly used
languages.

Anyways, just my $.02

With Regards...

--Alex
On Jul 13, 2011 9:15 PM, "Florian Müller"  wrote:


[PHP] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread Midhun Girish
Hi all,

I have an erp application developed in php (zend framework actually). There
are many reports which the admin level users can take from the application.
Some reports have more than 600,000 records. The viewing of reports in the
browser is fine as i have paginated the result. But when it comes to
exporting the entire report as pdf and in excel format, im in trouble. I use
fpdf for pdf generation and  a custom class for converting result to excel.
Both these fails when the number of records exceeds 500. Now i have
pagianted the report generation and users can download the pdf page wise.
But that is not the exact requirement. Im in need of a tool to generate pdf
and excel(or csv) for large data set. I came across
http://www.htmldoc.org/when i googled for one. Has anyone in the list
has faced a similar problem.
How exactly is report generation possible when the number of records is
extremely huge? Is there a good solution which can be implemented in php?
Please help.


Midhun Girish


Re: [PHP] PHP control structure

2011-07-13 Thread Negin Nickparsa
if the problem is only the assigning it's an example:
in mysql you can have this one:
create table store_list(id_markets int auto_increment,store_type int,primary
key(id_markets));

and for page this one:




Store




store type
corporate
standard

ID:




also I didn't understand your code that you have 'id_store' and 'id_markets'
it's confusing for me

if it wasn't your problem please clarify your question maybe I can help.


[PHP] IF stream lining

2011-07-13 Thread Ron Piggott

Is there a way to stream line this:

if ( ( $val <> "with" ) AND ( $val <> "from" ) ) {

Ron

The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info  


Re: [PHP] IF stream lining

2011-07-13 Thread Alex Nikitin
if( $val !== "with" && $val !== "from")

simple comparison = faster solution... also you want type-safe

you could do something like
if(!in_array($val, array("from","with"))) but its neither elegant nor fast
 On Jul 14, 2011 12:22 AM, "Ron Piggott" 
wrote:


Re: [PHP] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread George Langley
On 2011-07-13, at 9:59 PM, Midhun Girish wrote:
> 
> I have an erp application developed in php (zend framework actually). There
> are many reports which the admin level users can take from the application.
> Some reports have more than 600,000 records. The viewing of reports in the
> browser is fine as i have paginated the result. But when it comes to
> exporting the entire report as pdf and in excel format, im in trouble. I use
> fpdf for pdf generation and  a custom class for converting result to excel.
> Both these fails when the number of records exceeds 500. Now i have
> pagianted the report generation and users can download the pdf page wise.
> But that is not the exact requirement. Im in need of a tool to generate pdf
> and excel(or csv) for large data set. I came across
> http://www.htmldoc.org/when i googled for one. Has anyone in the list
> has faced a similar problem.
> How exactly is report generation possible when the number of records is
> extremely huge? Is there a good solution which can be implemented in php?
> Please help.
-
Hi there. FAQ #16 on:



has some useful info on handling large files:

16. What's the limit of the file sizes I can generate with FPDF?

There is no particular limit. There are some constraints, however: 

- The maximum memory size allocated to PHP scripts is usually 8MB. For very big 
documents, especially with images, this limit may be reached (the file being 
built into memory). The parameter is configured in the php.ini file. 

- The maximum execution time allocated defaults to 30 seconds. This limit can 
of course be easily reached. It is configured in php.ini and may be altered 
dynamically with set_time_limit(). 

- Browsers generally have a 5 minute time-out. If you send the PDF directly to 
the browser and reach the limit, it will be lost. It is therefore advised for 
very big documents to generate them in a file, and to send some data to the 
browser from time to time (with a call to flush() to force the output). When 
the document is finished, you can send a redirection to it or create a link. 
Remark: even if the browser times out, the script may continue to run on the 
server.


HTH


George Langley
Multimedia Developer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread Midhun Girish
Hi,


> - Browsers generally have a 5 minute time-out. If you send the PDF directly
> to the browser and reach the limit, it will be lost. It is therefore advised
> for very big documents to generate them in a file, and to send some data to
> the browser from time to time (with a call to flush() to force the output).
> When the document is finished, you can send a redirection to it or create a
> link.
> Remark: even if the browser times out, the script may continue to run on
> the server.
>  
>

When it comes to the user end, they wont wait for more than 1 min. So
redirection after generating the report is not possible. But creating link
may be a good idea. How can it be done? I mean shouldn't there be a service
running in the server to process these request after the execution of the
php script is completed? Also shouldn't we post all the report generation
request to a database so that serial processing can be done?


Re: [PHP] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread George Langley
On 2011-07-13, at 11:20 PM, Midhun Girish wrote:

> Hi,
> 
> 
> - Browsers generally have a 5 minute time-out. If you send the PDF directly 
> to the browser and reach the limit, it will be lost. It is therefore advised 
> for very big documents to generate them in a file, and to send some data to 
> the browser from time to time (with a call to flush() to force the output). 
> When the document is finished, you can send a redirection to it or create a 
> link.
> Remark: even if the browser times out, the script may continue to run on the 
> server.
> 
> 
> When it comes to the user end, they wont wait for more than 1 min. So 
> redirection after generating the report is not possible. But creating link 
> may be a good idea. How can it be done? I mean shouldn't there be a service 
> running in the server to process these request after the execution of the php 
> script is completed? Also shouldn't we post all the report generation request 
> to a database so that serial processing can be done?
---
We're helping each other here, as I'm facing a similar situation! Read 
up on how to store as a file here:



You should then be able to generate an email notification to send once the file 
is complete, with the link to the newly-created file.


George Langley
Multimedia Developer