473,586 Members | 2,682 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 1414
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.n etwrote:
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.n etwrote:
>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_t ime = 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... @THISPLEASEyaho o.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.n etwrote:
>>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_t ime = 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*******@attgl obal.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.n etwrote:
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
clairvoyan t.
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.n etwrote:
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*******@attgl obal.net
=============== ===

Nov 26 '07 #8

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

Similar topics

4
2173
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 forever to return the results back to the browser. Here's the line that's responsible for this: $users = $db->query_return_array("SELECT * FROM...
2
2381
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: http://127.0.0.1/Experiments/ASP/EXP_ASP_TypeName.asp Post-Upgrade the browser hangs forever with this in the status bar:
4
9494
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 bit, and then sets the text in the span to something else when done. You don't see the change though. -----
12
10145
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 scrollbar, you get the height of the entire document, screwing up any chance of centering a window in the browser using these values. Is there a...
3
1584
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 to .NET and, of course, would not like to be constrained by the Least Common Denominator (LCD) this particular company represents. Question: What...
17
2634
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of a browser window? ----------------------------------------------------------------------- Where supported in NN: (>NN4.0) var winWidth = window.innerWidth; var winHeight = window.innerHeight; Where supported in IE: (>IE4.0)
6
2389
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 completed finished, the second browser jusk pick up some session variables from the first browser and process right after that. It messed up...
3
3152
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 version of the cookie script 'forever' Which will not expire but require deletion from the users pc. I need help to alter the cookie code below NOT to...
9
3643
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 simple construction to do this: jsJSNode = document.createElement(“script”); jsJSNode.type = “text/javascript”; jsJSNode.src = “http://...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
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 we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.