473,805 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SSI Including PHP File Within PHP File Causes Seg Fault and Crash

Can somebody concur or verify the following? I'm having this problem on all
of my installations.

I've got Apache 2.0.40 and PHP 4.2.2 installed and configured from RedHat
RPMs. Nothing out of the ordinary. In the httpd.conf file, PHP files are
called with the following:

<Files *.php>
SetOutputFilter PHP;INCLUDES
SetInputFilter PHP
LimitRequestBod y 524288
</Files>

I create two files as follows:

/test1.php
<!--#include virtaul="/test2.php" -->

and

/test2.php
Testing 1 2 3

By going to http://host/test1.php, it may or may not display the file
contents of test2.php. Usually (9/10 times) I get a seg fault in the error
log. If I change the filename of test.php to test.html and include that, it
works fine. I've tried this on various versions of both Apache and PHP up
to the most recent CVS versions and still get the same results.

If somebody can help me out or concur my problem, I would much appreciate
it.

Arthur
Jul 17 '05 #1
1 1671
don't try to treat a .php file as an .shtml just do this

<?php
include("test2. php");
?>

--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Arthur M. Kang" <ar****@levelog ic.com> wrote in message
news:UABWb.3923 5$QJ3.24102@fed 1read04...
Can somebody concur or verify the following? I'm having this problem on all of my installations.

I've got Apache 2.0.40 and PHP 4.2.2 installed and configured from RedHat
RPMs. Nothing out of the ordinary. In the httpd.conf file, PHP files are
called with the following:

<Files *.php>
SetOutputFilter PHP;INCLUDES
SetInputFilter PHP
LimitRequestBod y 524288
</Files>

I create two files as follows:

/test1.php
<!--#include virtaul="/test2.php" -->

and

/test2.php
Testing 1 2 3

By going to http://host/test1.php, it may or may not display the file
contents of test2.php. Usually (9/10 times) I get a seg fault in the error log. If I change the filename of test.php to test.html and include that, it works fine. I've tried this on various versions of both Apache and PHP up
to the most recent CVS versions and still get the same results.

If somebody can help me out or concur my problem, I would much appreciate
it.

Arthur

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
8519
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential problem. The program may crash unexpectedly while writing to the file. If so, my program should detect this during startup, and then (during startup) probably delete the data added to the file and redo the writing operation.
6
6988
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug: <http://support.microsoft.com/default.aspx?scid=kb;en-us;888021> The statement like myPopup = window.open(args); gives you runtime error and halts the script execution *if a 3rd party
0
3296
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
6
1616
by: Al-Burak | last post by:
I have a class which only purpose is to provide services to a variety of classes in other files. The 'manipulator' class is aware of the other classes only because the header files have been include in its header file. However, there are times when some of the other classes are not and will not be dealt with, thus the need to include the header files does not arrive. To handle this, I have used compiler preprocessors to prevent the...
9
4994
by: Droopy | last post by:
Hi, I am running an application on 74 PC (1 instance on each PC). This morning, 2 applications crashes. There were neither popup windows signaling it nor dump file created. I only find in the event log an entry signaling a dotnet 2.0 runtime error : Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting
12
5603
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to write information into a log file. The problem is, i'm not confident that information i write to the log gets saved onto the hard drive before the crash occurs. My understanding of hard drives and OS are that because hard drives are so slow,...
116
4646
by: dmoran21 | last post by:
Hi All, I am working on a program to take input from a txt file, do some calculations, and then output the results to another txt file. The program that I've written compiles fine for me, however, when I run it, it stalls and does nothing. I'm wondering if there's something obvious that I'm missing. My code is below and any help would be appreciated. Thanks, Dave
8
14712
by: Bryan | last post by:
Hello all. I'm fairly new to c++. I've written several programs using std::vectors, and they've always worked just fine. Until today. The following is a snippet of my code (sorry, can't include all of it- it's over 1k lines long). In addition, I'm including an "include" file where structures like "stack" are defined. Again, it's really long. I doubt the problem lies there, though, because the include file is used in many other...
2
3708
by: Zach | last post by:
I compiled a game client and it crashed (segmentation fault) resulting in a core file being generated. I'm trying to find out exactly what caused it to crash. Any ideas how I can do this with gdb? In the Makefile can I just add a "-g" flag to have the binary produced with debugging symbols? The source is written in ANSI C. This is what I have now: "CC = gcc" The client binary is 433680 and the core file produced when it crashed
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10360
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.