|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 08:35 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 23:00:02 2025 UTC |
PHP 3.09 doesn't seem to have this problem so we have reverted back to it. But there are some functions in 3.0.11 that we do rely upon as well. PHP 3.0.11 causes the CPU usage to jump to 100% when we are including other files from external/local pages. We need to do this when including sections of ASP pages within our existing pages as this is not possible with ASP. I would like to rewrite these ASP pages in PHP but it is beyond my control. Here are the two methods I tried to use which caused the problems. -------------------------- // INCLUDE THE EVENTS PAGE AND SEND ON ANY $QUERY_STRING VARIABLES SENT TO THIS PAGE. $fp = fopen("http://".$HTTP_HOST."/news/events/c_public.asp?deptid=16&disptype=13&ahead_date=60&children=1&catid=9" ,"r"); while ( $val = fgets($fp, 512)) echo "$val \n"; -------------------------- This method causes PHP to flatline the server. -------------------------- // INCLUDE THE EVENTS PAGE AND SEND ON ANY $QUERY_STRING VARIABLES SENT TO THIS PAGE. $fp = file("http://".$HTTP_HOST."/news/events/c_public.asp?deptid=16&disptype=13&ahead_date=60&children=1&catid=9","r"); for($i=0; $i<count($fp); $i++) echo $fp[$i]."\n"; -------------------------- As does the one above. Also will there be any further versions of PHP3.0.11 now that PHP4 Beta has been released?