|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-12-23 22:53 UTC] smartychan at hotmail dot com
Description: ------------ Hi, I have an Apache 2, PHP on windows XP pro. They're all installed properly. When I run a php script that is big, it will crash. It will then display The Page Cannot be Displayed (Cannot find server or DNS Error). I tried all 4.3 versions and 5.0, and all versions of apache, and reformatted computer. For example, when I use "include" and include a big regular html file with many words, php "flashes and refreshes", trying to load the php + included html page. Then, it will suddenly crash and the error will show up. This also happens in another area, in a simple coppermine photo gallery. When the php gallery is viewed, sometimes it will suddenly crash. Sometimes it will not. When it does crash and the Page cannot be displyaed shows, I try to refresh it and still cannot view the crashed page. So, it randomly crashes. The php usually crashes when it loads "big information-like a big html page" (not necessarily php code). Also, PHP crashes on the big page no matter what machine I use to view it. It will crash on the server machine itself when the php page is loaded. I do not think it is my computer server problem, tho. This is my server: Sony vaio Pentium III 900mhz 512Ram 40GB hardrive NTFS Could you help me with this problem? Thanks, Felix Chan Reproduce code: --------------- An very simple php file with the include function for "file.html"---file.htm has many words and is relatively big. Also, PHP crashes during coppermine gallery viewing. Expected result: ---------------- PHP should load, and not display an error. Actual result: -------------- PHP "Crashes" The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. Cannot find server or DNS Error Internet Explorer PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
I don't think I can provide anymore information. However, I can give some recent summary of information. 2 Days ago, I reformatted my computer. Now, it is C and D drive both NTFS file system. I only installed 2 things on it so far. Apache 2, php 4.3. I installed Apache 2 using the installer, and I configured the Document Root and Directory Index only. Then, I installed php using the installer. I configured Apache 2 and php by adding these to the appropriate apache places: ScriptAlias /php/ "c:/php/" Action application/x-httpd-php /php/php.exe AddType application/x-httpd-php .php Then, I made 2 files only in my directory: (this file is called abc.php) <html> <head> </head> <body> <?php include 'uselessfacts.htm'; ?> </body> </html> the second file, uselessfacts.htm, is 154kb big and contains 800 lines of text or so. The result was that the website crashed when viewed in IE 6. When viewed in Firefox, the page loaded parts, and when refreshed, loaded the entire webpage. IT did not totally crash in firefox. When crashes, this is what happens: The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. ... Cannot find server or DNS Error Internet Explorer I know it is not my DNS problem, because it crashes when type localhost/abc.php in my URL. Apache also never crashes, except when used with PHP. I only have those 2 things installed on a fresh computer right now. My apache and php and program files are on C drive, and my website files are on the D drive. However, I tried moving the files on the D drive to the C drive, and the error still remained. Therefore, I think it is a configuration problem. I think this is really weird, and I tried searching the internet for a similar problem, but nothing came up. Error 9845 is the closest I can get, but it does not match my error completely. Thanks!