urgent: Document Contains No Data

From: Date: Tue, 08 Jun 1999 11:32:03 +0000
Subject: urgent: Document Contains No Data
Groups: php.dev 
Request: Send a blank email to php-dev+get-6708@lists.php.net to get a copy of this message
dear developers, I wrote a document, which produce the output "Document contains no data" when I try to load it in my webbrowser. The same document worked fine on my old linux-box. I´am just linux user. So I don´t understand what is really happens.: I installed: apache 1.3.6 (./configure --prefix=/usr/local/httpd --activate-module=src/modules/php3/libphp3.a) php 3.0.8 (./configure --with-apache=../apache_1.3.6 --with-mysql=/usr --with-config-file-path --enable-safe-mode=yes --enable-track-vars=yes --enable-magic-quotes=yes --enable-url-fopen-wrapper=no) gd 1.3 freetype 1.2 mysql 3.22.22 on my linux-box. (SUSE 6.1) I tried the instruction in FAQ.php3 7.1. But I cant produce a log file, so I typed the dbg messages bellow: The output of dbg was: Program received signal SIGSEGV, Segmentation fault. (No debugging symbols found)... chunk-alloc (ar_prt=0x40146300, nb=24) at malloc.c:2731 malloc.c:2731: No such file or directory. and after bt: #0 chunck-alloc (ar_ptr=0x40146300, nb=24) at malloc.c:2731 #1 0x400ebd15 in __libc_malloc (bytes=18) at malloc.c:2561 #2 0x806f019 in _start () #3 0x806f28a in _start () #4 0x80a4cd1 in _start () #5 0x806d6e9 in _start () #6 0x8066b9f in _start () #7 0x809a3da in _start () #8 0x8068357 in _start () The document, which i colled in the browser is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <BODY TEXT="#000000" BGCOLOR="#B9D3DD" LINK="#C7C7C7" VLINK="#C7C7C7" ALINK="#C7C7C7"> <BASEFONT FACE="Arial,helvetica,sans-serif,MS Sans Serif"> <BASEFONT SIZE="3"> <? $link=mysql_connect("localhost"); echo "link: ".$link."<BR>"; ?> <? $result=mysql_db_query("ISwb","SELECT ThemenID,Thema FROM Themen ORDER BY Thema ASC",$link); ?> <FORM NAME="Themensuche" ACTION="themensuche.phtm" METHOD="POST"> <SELECT NAME="themenID" SIZE="1"> <TABLE> <TD> <? while($row = mysql_fetch_array($result)) ?> <? {echo "<OPTION VALUE=".$row[0].">".$row[1];}; ?> <? mysql_free_result($result); ?> <? mysql_close(); ?> </TD> </TABLE> </SELECT> </FORM> </body> </html> When I change this file to this bellow, then I receive an output in the browser: (I remove the table- and form-tags): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 //EN"> <html> <head> </head> <BODY TEXT="#000000" BGCOLOR="#B9D3DD" LINK="#C7C7C7" VLINK="#C7C7C7" ALINK="#C7C7C7"> <? $link=mysql_connect("localhost"); ?> <? echo "link: ".$link."<BR>"; ?> <? $result=mysql_db_query("ISwb","SELECT ThemenID,Thema FROM Themen ORDER BY Thema ASC",$link); ?> <? echo "result: ".$result."<BR>"; ?> <? while($row = mysql_fetch_array($result)): ?> <? {echo "<OPTION VALUE=".$row[0].">".$row[1];}; ?> <? endwhile; ?> <? mysql_free_result($result); ?> <? mysql_close(); ?> </body> </html> Can anybody help me? Thanks in advance. philipp

« previous php.dev (#6708) next »