Connecting Tech Pros Worldwide Forums | Help | Site Map

Apache serves blank page

Mani
Guest
 
Posts: n/a
#1: Nov 21 '08


Hi

I have created one sample php script to upload excel sheets of very
bigger sizes. Also the process happening with each records given in
the excel sheets is bit complex. To allow bigger sizes, I have added
necessary php ini values in the apache configuration file to override
the actual php ini values.

The problem is, once i upload the bigger files, it takes longer time
say 2 mins or so, after that i am seeing the blank page instead of
results page. When I tailed the apache logs, I didnt see any such
lines related to this issue.

Just wanted to know, Is there any case/possibilities when apache could
serves blank page?

But when I tailed my app level logs, it is very clear the script has
completes the job perfectly. My suspect, May be what could have happen
is, once the job completes, while apache about to serve back the
results page something would have happened..but am not sure about it.

Can anyone please help me on this issue?

thanks, Mani

Sven Reuter
Guest
 
Posts: n/a
#2: Nov 21 '08

re: Apache serves blank page


Mani wrote:
Quote:
I have created one sample php script to upload excel sheets of very
bigger sizes. Also the process happening with each records given in
the excel sheets is bit complex. To allow bigger sizes, I have added
necessary php ini values in the apache configuration file to override
the actual php ini values.
>
Did you also increased the time out for php scripts? Default is IMO 30
seconds.


Sven Reuter
--
http://www.sReuter.net/
http://www.Auskennbert.de/

For mail replace 'mm' with actual month, 'jj' with actual year (e.g.
'..._11_08').
Mani
Guest
 
Posts: n/a
#3: Nov 21 '08

re: Apache serves blank page


Quote:
Did you also increased the time out for php scripts? Default is IMO 30
seconds.
Did you mean max_execution_time? If answer is yes, the answer for your
question is yes :)
Jerry Stuckle
Guest
 
Posts: n/a
#4: Nov 21 '08

re: Apache serves blank page


Sven Reuter wrote:
Quote:
Mani wrote:
>
Quote:
>I have created one sample php script to upload excel sheets of very
>bigger sizes. Also the process happening with each records given in
>the excel sheets is bit complex. To allow bigger sizes, I have added
>necessary php ini values in the apache configuration file to override
>the actual php ini values.
>>
>
Did you also increased the time out for php scripts? Default is IMO 30
seconds.
>
>
Sven Reuter
It wouldn't help - that only applies to when the PHP script is executing
- which it isn't while the file is being uploaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Jerry Stuckle
Guest
 
Posts: n/a
#5: Nov 21 '08

re: Apache serves blank page


Mani wrote:
Quote:
>
Hi
>
I have created one sample php script to upload excel sheets of very
bigger sizes. Also the process happening with each records given in
the excel sheets is bit complex. To allow bigger sizes, I have added
necessary php ini values in the apache configuration file to override
the actual php ini values.
>
The problem is, once i upload the bigger files, it takes longer time
say 2 mins or so, after that i am seeing the blank page instead of
results page. When I tailed the apache logs, I didnt see any such
lines related to this issue.
>
Just wanted to know, Is there any case/possibilities when apache could
serves blank page?
>
But when I tailed my app level logs, it is very clear the script has
completes the job perfectly. My suspect, May be what could have happen
is, once the job completes, while apache about to serve back the
results page something would have happened..but am not sure about it.
>
Can anyone please help me on this issue?
>
thanks, Mani
There could be many reasons for this - a bug in your PHP script, for
instance. But these may not be logged - it depends on your PHP settings.

What does your php.ini file have for the following parameters?

error_reporting
display_errors
log_errors
error_log


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
duane.lortie@gmail.com
Guest
 
Posts: n/a
#6: Nov 21 '08

re: Apache serves blank page


I'd bet Jerry is right, you are likely getting an error, but your php
settings are such that the error isn't logged, or displayed. I've ran
into this enviroment before and it just about drove me mad.

Adding this to the top of your script should allow you to at least see
the errors.


error_reporting(E_ALL);

Secondly, if it's not a max execution time error, then you might be
exceeding the max file upload size. Again, depending on your server's
PHP config, you may be able to override that value on a per script
level by adding something like this near the top of the script.

ini_set('upload_max_filesize' 8M);
Closed Thread