#20607 [Com]: function included from parent script gets lost
| From: | nick at itomic dot com | Date: | Mon, 25 Nov 2002 06:32:35 +0000 |
| Subject: | #20607 [Com]: function included from parent script gets lost | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25763@lists.php.net to get a copy of this message | ||
ID: 20607
Comment by: nick@itomic.com
Reported By: nick@itomic.com
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: red hat 7.2
PHP Version: 4.2.3
New Comment:
it doesnt matter if I do
ini_set("error_reporting", "E_WARNING");
or
ini_set("error_reporting", "E_ALL");
or include_once / require_once
the site comes up with nothing when I set error_reporting
Previous Comments:
------------------------------------------------------------------------
[2002-11-25 00:28:02] nick@itomic.com
ok index.php now reads (on the live site):
<?
ini_set("error_reporting", "E_ALL");
//echo "Error Level : " . ini_get("error_reporting") . "<br />";
require_once "it_functions/it_db.php";
$a = it_getnextid("table", "trjh");
?>
I dont get any msg at all now, but i should get an echo from
it_GetNextID ... ?
------------------------------------------------------------------------
[2002-11-24 19:27:32] nick@itomic.com
yep, will do that, but im using other files in the same directory. also
what is the function to get/set config options in php via the script?
------------------------------------------------------------------------
[2002-11-24 12:36:08] iliaa@php.net
Looks like the include is failing, but the error is not being shown,
could you increase your error level to display E_WARNING or change
include_once to require_once.
------------------------------------------------------------------------
[2002-11-24 05:53:35] nick@itomic.com
the only difference is in index.php:
<?
include_once "it_db.php";
$a = it_getnextid("table", "trjh");
?>
------------------------------------------------------------------------
[2002-11-24 05:51:57] nick@itomic.com
to see the above on my live server, goto
http://www.blackisha.com/cms_phpbug_central/index.php
to see the result if it_db.php is included within the same directory,
goto
http://www.blackisha.com/cms_phpbug/index.php
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20607
--
Edit this bug report at http://bugs.php.net/?id=20607&edit=1