Home > Archive > PHP Programming > November 2007 > browser waits forever on my script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
browser waits forever on my script
|
|
| Jim Michaels 2007-11-25, 4:17 am |
| As first I was getting "PHP Warning: Unknown: failed to open stream:
Permission denied in Unknown on line 0"
errors in my server log.
so I gave the file permissions.
now the browser sits there forever waiting for the server to respond. I
even tried bouncing the server. no joy.
the file is 700 lines long, so I decided not to post it here.
any clues as to what might be going on?
using PHP5.
--
Jim Michaels
for email, edit the address
| |
| Ulf Kadner 2007-11-25, 8:00 am |
| Jim Michaels wrote:
> now the browser sits there forever waiting for the server to respond. I
> even tried bouncing the server. no joy.
You never have to run untested Code into productive Environments.
If its not productive install and use a debugger for locating the problem.
Otherwise u can only use manual debugging (print_r, var_dump, ...)
to clean the problems.
> the file is 700 lines long, so I decided not to post it here.
So you can only quest a magic glass ball or consult your rather clairvoyant.
Ulf
--
_,
_(_p> Ulf [Kado] Kadner
\<_)
^^
| |
| C. (http://symcbean.blogspot.com/) 2007-11-25, 7:03 pm |
| On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.net> wrote:
> Jim Michaels wrote:
>
> You never have to run untested Code into productive Environments.
> If its not productive install and use a debugger for locating the problem.
>
> Otherwise u can only use manual debugging (print_r, var_dump, ...)
> to clean the problems.
>
>
> So you can only quest a magic glass ball or consult your rather clairvoyant.
>
try publishing a 10 line script which replicates the problem (although
by then you'll probably have worked it out for yourself).
C.
| |
| Jim Michaels 2007-11-25, 10:02 pm |
| C. (http://symcbean.blogspot.com/) wrote:
> On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.net> wrote:
>
> try publishing a 10 line script which replicates the problem (although
> by then you'll probably have worked it out for yourself).
>
> C.
in php.ini:
max_execution_time = 60 ; Maximum execution time of each script, in
seconds
it waits a whole lot longer than that. it won't ever stop. usually I
see a browser timeout after a certain number of seconds, but this has me
stumped. it would be nice to know what's going on under the hood.
is this apache which is having a problem? this is not on a production
server, just a test environment.
--
Jim Michaels
for email, edit the address
| |
| Kailash Nadh 2007-11-25, 10:02 pm |
| "failed to open stream", are you doing an fopen() or fsockopen() on a
remote url ?
If yes, the remote url being unavailable and timing out is likely to
be the issue.
Regards,
Kailash Nadh
http://kailashnadh.name
On Nov 25, 8:53 am, Jim Michaels <jmichae3REM...@THISPLEASEyahoo.com>
wrote:
> As first I was getting "PHP Warning: Unknown: failed to open stream:
> Permission denied in Unknown on line 0"
> errors in my server log.
>
> so I gave the file permissions.
> now the browser sits there forever waiting for the server to respond. I
> even tried bouncing the server. no joy.
>
> the file is 700 lines long, so I decided not to post it here.
>
> any clues as to what might be going on?
>
> using PHP5.
>
> --
> Jim Michaels
> for email, edit the address
| |
| Jerry Stuckle 2007-11-26, 4:01 am |
| Jim Michaels wrote:
> C. (http://symcbean.blogspot.com/) wrote:
>
> in php.ini:
> max_execution_time = 60 ; Maximum execution time of each script, in
> seconds
>
> it waits a whole lot longer than that. it won't ever stop. usually I
> see a browser timeout after a certain number of seconds, but this has me
> stumped. it would be nice to know what's going on under the hood.
>
> is this apache which is having a problem? this is not on a production
> server, just a test environment.
>
Jim,
Much more likely is you have a loop in your script which doesn't exit.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
| |
| Jim Michaels 2007-11-26, 4:01 am |
| Jerry Stuckle wrote:
> Jim Michaels wrote:
>
> Jim,
>
> Much more likely is you have a loop in your script which doesn't exit.
>
this was correct. it was a header statement which refers to itself with
no proper conditions. problem solved. now onto other things.
--
Jim Michaels
for email, edit the address
| |
| Jerry Stuckle 2007-11-26, 4:01 am |
| Jim Michaels wrote:
> Jerry Stuckle wrote:
>
>
> this was correct. it was a header statement which refers to itself with
> no proper conditions. problem solved. now onto other things.
>
I won't tell you how many times I've done similar things :-)
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
|
|
|