473,511 Members | 15,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

browser waits forever on my script

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
Nov 25 '07 #1
7 1409
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
\<_)
^^
Nov 25 '07 #2
On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.netwrote:
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.
try publishing a 10 line script which replicates the problem (although
by then you'll probably have worked it out for yourself).

C.
Nov 25 '07 #3
C. (http://symcbean.blogspot.com/) wrote:
On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.netwrote:
>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.

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
Nov 26 '07 #4
"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
Nov 26 '07 #5
Jim Michaels wrote:
C. (http://symcbean.blogspot.com/) wrote:
>On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.netwrote:
>>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.

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,

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.
js*******@attglobal.net
==================

Nov 26 '07 #6
Jerry Stuckle wrote:
Jim Michaels wrote:
>C. (http://symcbean.blogspot.com/) wrote:
>>On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.netwrote:
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.
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,

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
Nov 26 '07 #7
Jim Michaels wrote:
Jerry Stuckle wrote:
>Jim Michaels wrote:
>>C. (http://symcbean.blogspot.com/) wrote:
On 25 Nov, 11:33, Ulf Kadner <dr_lo...@gmx.netwrote:
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.
>

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,

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.
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.
js*******@attglobal.net
==================

Nov 26 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2168
by: Shabam | last post by:
Ok I'm trying to run a php script written by someone else, not me, and it's getting stuck in a particular step. Actually it isn't getting stuck per se, but the browser is, because it's taking...
2
2372
by: Ed Swartz | last post by:
I installed SP4 for Windows 2000. Prior to the upgrade my system was at SP3 and I was able to run ASP scripts from my browser just fine. For exmaple: ...
4
9490
by: Andy Gayton | last post by:
Hey all, It looks like dynamic changes to a html document are only redrawn when the current code snippet comes to an end. For example the following page changes the text in a span, waits for a...
12
10127
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
3
1576
by: Jason | last post by:
We have an Extranet with one customer with 20,000 users that has, unfortunately, standardized on Netscape 4.77 for the entire company. We are in the process of rewriting this application from Java...
17
2615
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of a browser window?...
6
2383
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not...
3
3141
by: Inny | last post by:
I want To offer a login Option, two Checkboxs, 1 labeled 'normal' the other labeled 'Forever'. I want to assign the check boxes to switch between the cookie script below (normal) and An altered...
9
3637
by: Denis | last post by:
Hello, Maybe somebody already solved this task. I need to load JS asynchronously without blocking browser. This means that I do not need to block browser to load/render during loading script. The...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.