php-windows Digest 24 May 2001 09:17:25 -0000 Issue 615 Topics (messages 7899 through 7905): Re: RE:escape loop on timeout 7899 by: Brendan Re: Managing Sessions 7900 by: Ignatius Teo Re: THE SOLUTION 7901 by: Nold, Mark Error using PHP installer 7902 by: Helphand Windows ME bug? - php_gd.dll 7903 by: Bernie Kruger Dr F!@#son error....argh 7904 by: Brendan Re: anti-advocacy: Larry Seltzer, pcmag May'01 pub. 7905 by: Stanislav Malyshev 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] ----------------------------------------------------------------------
I have a multi dimensional array dim[0] are URLs dim[1] is supposed to be the description which i am creating by fetching the page remotely.. often as you said the page wont come through for some reason .. in such cases the script hangs.. .. Piotr Plusa wrote: > Have you got any idea what to do when you want to measure the time but not > in the loop? > > Case: you want to limit the time of reading from an open socket (fread), the > other side doesn't answer, you wait and wait... > > Piotr Plusa > > ----- Wiadomosc oryginalna ----- > Od: "Brendan" <[EMAIL PROTECTED]> > Do: <[EMAIL PROTECTED]> > Wyslano: 23 maja 2001 01:54 > Temat: [PHP-WIN] RE:escape loop on timeout > > > > > > > Zak Greant wrote: > > > > > Johan Lundqvist wrote: > > > > This is a way of doing it: > > > > > > > > $s = time() + 10; > > > > for ($i = time(); $i <= $s; $i++) { > > > > print $i; > > > > } > > > > > > > > Will run for about ten seconds... > > > > > > Did you leave a bit of code out? > > > In most cases, this will run for only a few milliseconds. :) > > > > > > Try something like this instead: > > > > > > $timeout = 1; // Timeout in seconds > > > $start_time = time(); // Get the current time > > > > > > for ($x=0; $x < 1000000000; ++$x) { > > > > > > /* > > > // Check if we have gone over the time limit > > > // Only check every 1000 loops - this keeps > > > // us from chewing run time by checking the time > > > // all the time :) > > > */ > > > if ( (0 === ($x % 1000)) && (time () - $start_time) > $timeout) > > > break; > > > > > > echo ($x, '<br>'); > > > } > > > > > > --zak > > > > > > > ---------------- > > > > Thanks guys > > > > sorry about the delay .. I am in Australia.. > > checking the time each loop would only work if the loops complete > correctly > > .. if the process locks mid loop php wont reach the criterion break > because > > it deals with each command linearly. ie > > > > for (x=0;x!="array full";x++) > > dothisfunction(x); > > if ( (0 === ($x % 1000)) && (time () - $start_time) > $timeout) > > break; > > etc > > > > if dothisfunction() locks up wont the entire script freeze? > > > > maybe I am wrong.. > > > > what I am after is something like alert() in Perl or the 'on error resume > > next' in ASP which runs externally to the loop and breaks to the next > > instance if it is taking too long... > > any ideas? > > cheers! > > > > > > > > > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
http://phplib.netuse.de Ignatius -----Original Message----- From: Scott Ellis [mailto:[EMAIL PROTECTED]] Sent: Thursday, 24 May 2001 06:28 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Managing Sessions Would like to know from experience what are the best practices, and just options in general, for managing sessions when using PHP. Cookies or other???? Scott -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at [EMAIL PROTECTED] and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- Out of interest John, have you tried PEAR::DB ? I gave it a while under Windows (as a CGI) and it seemed a tad slow compared to my own DB abs layer, or PHPLib. Maybe that it's problem too. Mark Nold [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Senior Consultant Change is inevitable, except from vending machines. -----Original Message----- From: Asendorf, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 3:46 AM To: Php-Windows (E-mail) Subject: THE SOLUTION First, thanks to everyone who chimed in with great suggestions on why my app was moving so slowly... In case you missed it, I was having problems with page return time while connecting to Oracle. Here's the solution. Every bit of code was just fine (well, fine ENOUGH I guess :) ). What I didn't know, and am about to put into the annotated manual as soon as this thank you is written, is that OCIPLogon only 'really' works when PHP is being hit as a module. What is deceptive is that you can use OCIPLogon in CGI mode, but it is unable to stay persistent (something that a little deductive reasoning should have exposed to me, but I'm not as smart as I'd like to think I am sometimes) if you run PHP as a module.... So, thanks for all the help. --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est
At 08:26 PM 5/23/01 +0000, [EMAIL PROTECTED] wrote: >Hi. > >I am pretty new to running web servers but I have figured it out so far. I >was able to get the Apache server up and running. But, I keep getting this >error: > >Syntax error on line 980 of c:/program files/apache >group/apache/conf/httpd.conf >: >Cannot load c:/php/sapi/php4apache.dll into server: (1157) One of the >library files needed to run this application cannot be found: Try copying the file \php\php4ts.dll to your \windows\system directory and restarting apache. Worked for me. Scott
Has anyone managed to get PHP 4.0.5 (CGI or ISAPI) working on Windows ME, PWS 4 (Supplied with Win 98)? I get everything to work, except php_gd.dll. My PWS 4 crashes when I uncomment it in the php.ini. I have tried everything and I think it could have something to do with kernel32.dll (I can be wrong). I have tested all the other dependand dll's (even msvcrt.dll), but no luck. I have even tried 100s of other php_gd.dll's. They don't crash the PWS4, but when I run PHPINFO it says cannot find php_gd.dll. On win98 the exact same setup runs 100%!!! and on Win2000 IIS 5 as well!!! Help would be appreciated. Bernie South Africa
Hi PHP keeps crashing and I cant isolate why because i just get that damned Dr Watson error... the error is Acess Violation(0xc0000005), Address: 0x7800d6a1 it causes php to crash and the script to stop executing... i get a cgi no header error in the browser.. anyone have any ideas? would be MUCH appreciated cheers
J>> sTrPoS J>> StRpOs J>> STrpOS J>> stRPos J>> sTRpOS J>> ... J>> sTRPOS J>> STRPOs Once I had to deal with an assembler for some embedded processor that allowed symbol names up to 6 characters. That was exactly the way to make different readable identifiers, so that you could have lstart, lstarT, lstaRt, lstaRT etc. Thanks God that assembler was case-sensitive. Those old days... :) -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115