#18936 [Opn->Fbk]: Causes server to crash, serious problem
| From: | kalowsky@php.net | Date: | Fri, 16 Aug 2002 13:47:02 +0000 |
| Subject: | #18936 [Opn->Fbk]: Causes server to crash, serious problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17008@lists.php.net to get a copy of this message | ||
ID: 18936
Updated by: kalowsky@php.net
Reported By: theshithead@cox.net
-Status: Open
+Status: Feedback
Bug Type: Performance problem
Operating System: Unsure
PHP Version: 4.2.0
New Comment:
Okay I have no idea what you're trying to show us here. Can you please
make this the SIMPLEST sample script you can, and explain it a lot
better? Also do please try to upgrade to PHP 4.2.2
Previous Comments:
------------------------------------------------------------------------
[2002-08-16 04:09:12] theshithead@cox.net
This could be hard to explain, but here it goes:
<?php
#### Quick ex. of variables.php
$path_site = "www.w0rms.com";
loginStatus = include("$path_site/login.php");
?>
#### Quick ex. of index.php, page in wich problem occurs
<?php
// Required Files
require("require/variables.php");
require("require/mysql.php");
require("require/functions.php");
require("require/common.php");
require("require/themes.php");
echo "$header";
?>
#### Quick ex of themes.php, the page proccessing the info in database
<?php
Connect();
$sql = mysql_query("SELECT * FROM $db_themes WHERE theme_id =
'$user_theme' ORDER BY theme_id ASC")or mysqlDie("N/A", __FILE__,
__LINE__, mysql_error());
$myrow = mysql_fetch_array($sql);
$theme_id = $myrow["theme_id"];
$header = addslashes($myrow[header]);
eval("\$header = \"$header\";");
$header = stripslashes($header);
?>
#### Header of site, stored in MySQL Database (just example not full)
<td valign="top" border="0"
background="$path_themes/eBlue/images/header_middle.gif">
// problem var
$loginStatus
</td>
As you can see, I am calling that var from my database. All other vars
such as path_themes work fine. However this one causes the server to
stop. Pages wont load, it completelly crashed for 3 hours. I tried it
again, and it happend once more just now.
What might the cause be? I am clueless, the include is correct. And I
am eval'ing it correct. The only time this happens is when I use the
include function in my variable.
thanks,
w0rms.com
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18936&edit=1