php-windows Digest 8 Jan 2004 22:15:17 -0000 Issue 2073
Topics (messages 22521 through 22524):
Re: Why does php exit after 6 minutes? - SOLVED
22521 by: Svensson, B.A.T. (HKG)
Re: looking for php debugging tips
22522 by: Svensson, B.A.T. (HKG)
22524 by: Jennifer S.
problems using fileperms under win2k
22523 by: Markus U
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
We all do our misstakes! :)
In any case, this is NOT php related.
It has to do with IIS. IIS has about 5 watchdogs one need to take care
about. Thanks to a tip from Frank Kromman I were able to nail this one down:
The manual on CGI configuration does not say anything about timeouts but
there is a tab with two timout values for the configuration in IIS
manager(session, and execution) but these only affect ASP session. One has
to do a change in the metabase.xml to set this. There are example script on
how to do this, but these are for Java, perl and VBScript, hence useless for
me. I changed the defualt value of 300 for CGItimeout directly in the file:
%WINROOT%/system32/inetsrv/metabase.xml, something.
and then it worked just fine.
-----Original Message-----
From: Manuel Vazquez Acosta
To: [EMAIL PROTECTED]
Sent: 2004-01-07 18:41
Subject: Re: [PHP-WIN] Re: Why does php exit after 6 minutes?
Ops, I was missed up (I did 3600/2 instead 3600/10)
Manu.
"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> The last time I checked 1800 seconds was equal to 30 min :-)
>
> 6 min is 360 seconds.
>
> - Frank
>
> > Your configuration imposes the 6 mins limit:
> >
> > > phpinfo(): max_execution_time: 1800s
> > > phpinfo(): mssql.timeout: 1800s
> >
> > So, PHP scripts won't run more than 1800 seconds, ie 6 mins.
> >
> > Try set_time_limit(0); at the beginning of your script to avoid time
> > limitations.
> >
> > Manu.
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
With scripting languages: print is your best friend!
Also check out ww.php.net, they gives soem references to some remote
debuggers wich seams to be usefull. I haven't tested them yet thou.
-----Original Message-----
From: Jim MacDiarmid
To: [EMAIL PROTECTED]
Sent: 2004-01-08 03:07
Subject: [PHP-WIN] looking for php debugging tips
Can anyone help out a newbie or point me in the right direction on
properly debugging php code? I'm really having a rough time with this,
and things just don't seem to be working the way I'm expecting them to.
I'm trying to study this by using the "Teach yourself php, mysql, and
apache in 24 hours" and it appears there are a lot of errors in the
book, which is adding to my confusion.
Many thanks
Jim
--- End Message ---
--- Begin Message ---
Hi,
This may help, depending on your preferences. Anyway, it's what I have used for some
years now both on ASP and PHP development.
On the server-side use a dedicated variable (eg. $dbg) to dump any value/variable you
want to check/trace.
On the client-side create a hidden <input> field with the value set to $dbg (<input
type="hidden" id="cs_dbg" name="cs_dbg" value="<?= $dbg ?>">)
Then somewhere on the page where users are not likely to double-click, usually I use
the header bar, create an invisible field with the onDblClick event handler pointing
to some function that formats the data from cs_dbg and displays it in a message box.
In IE you can use a <span> tag with inline style, e.g.
<span id="spnDbg" style="position:absolute; top:2px; left:760px; width:20px;
height:20px; visibility:hidden;" onfiltered="return spnDbg_ondblclick()"></span>
In other browsers you'll have to use a button, since some browsers don't support
events attached to <span> elements, but the principle is the same.
Example code for event handler:
<script type="text/_javascript" language="_javascript">
function spnDgb_ondblclick() {
var strT="", someArr = new Array();
.....
//parse the data from cs_dbg here
//eg. explode to array and extract name-value pairs
//or whatever ...
.....
strT += "someVar: " + someArr["someVar"] + "\n";
.....
window.alert(strT);
}//end
</script>
Obviously you can include client-side variables to be displayed too.
When you need to check the variables, double-click on the hidden debug spot and there
you go. Once you have finished the dev stage of the application, wipe the code and
hidden field.
Needless to say, you'll have to adapt language/tags etc to your particular
environment, but the above has saved me hours of frustration.
Cheers,
Jennifer
"Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> wrote:With scripting languages: print is
your best friend!
Also check out ww.php.net, they gives soem references to some remote
debuggers wich seams to be usefull. I haven't tested them yet thou.
-----Original Message-----
From: Jim MacDiarmid
To: [EMAIL PROTECTED]
Sent: 2004-01-08 03:07
Subject: [PHP-WIN] looking for php debugging tips
Can anyone help out a newbie or point me in the right direction on
properly debugging php code? I'm really having a rough time with this,
and things just don't seem to be working the way I'm expecting them to.
I'm trying to study this by using the "Teach yourself php, mysql, and
apache in 24 hours" and it appears there are a lot of errors in the
book, which is adding to my confusion.
Many thanks
Jim
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
Yahoo! Personals
- New people, new possibilities. FREE for a limited time!
--- End Message ---
--- Begin Message ---
I've troubles with using fileperms under WIN2K with Apache/2.0.48 (Win32)
PHP/4.3.4.
I've disabled the read&write permissions for a file and get, as expected a
warning on fopen (failed to open stream: Permission denied) . If I check the
permissions with fileperms the result is always 33206 (or 666, -rw-rw-rw-) -
the same as for files with valid rw permissions.
Is that a general problem, have I done anything wrong, do you have an
workaround?
Tx Markus
--- End Message ---