php-windows Digest 22 Sep 2001 11:26:43 -0000 Issue 767 Topics (messages 9458 through 9461): getmxrr not suppoerted 9458 by: Gaylen Fraley memory limits 9459 by: Piotrek reading a remote file 9460 by: Roshdy Hegazy Re: swatch internet time 9461 by: Arron Edwards 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'm running under the PHP Binary (pre-compiled) from www.php.net. When I try to use the getmxrr() function, I receiev this error: Warning: getmxrr() is not supported in this PHP build Is this just an ini setting (extension) or is the binary trully missing the support? If it is truly missing, is there another site that someone knows of that carries the binary with the functions compiled in? Thanks, -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts
I created a small PHP environment, which works on it's own without any ingerention from the user, relocating to another script after finishing the operation, often opening and closing sockets. It works perfectly, but only if the number of data is limited. If it's too much, suddenly one of the scripts stops without any information, not reacting on set_time_limit. I noticed, that if I turn off all text information sending to output, scripts works about 2-4 times longer than if the text is being sent. Thus I think that memory limit causes my problems. Does anybody have an idea how to clean the memory after each operation?
I have PHP 4.0.5 installed on Windows 2000 server (IIS5). I used file() function and relative paths to read files located under the same directory on the same web site ( such as file("filename"). The function is working properly. When I tried to file() files located on different web site; using URL; with explicit paths, such as (file(http://domainname/path/filename), I get the fwarning: php_network_getaddresses: gethostbyname failed in mayserver\news\news.php on line 3 Could you help me in that issue. Thanks --------------------------------- Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
Hey all i worked it out. Someone emailed me the C code, I converted it to PHP here it is if any one else wants it. <?PHP $the_time = time(); $seta = ($the_time %86400); $setb = ($seta +3600); $setc = ($the_time -$setb); $setd = ($the_time -$setc); $sety = ($setd *10); $setz = ($sety /864); $beat = $setz; while($beat<0){ $beat += 1000; } $beat = $beat %1000; echo "@$beat"; ?> and the C code: beat = (((((long)the_time)-(((long)the_time) - ((((long)the_time) % 86400) + 3600))) * 10) / 864); while (beat < 0) { beat += 1000; } beat = beat % 1000; sprintf(tmp_buff, "%03d", beat); /* SAFE */ strcat(return_value->value.str.val, tmp_buff); break; the_time being the UNIX timestamp. Cheers All =)