Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error reporting mystery

Status
Not open for further replies.

sirugo

Programmer
Aug 1, 2000
162
SE
I'm overriding the current settings of php.ini using ini_set like this in the developing phase:

ini_set('display_errors', 1);
ini_set('error_reporting', 2047);
ini_set('mysql.trace_mode', 1);

printf("<P>%s%s", $ffr);

$msc = mysql_connect("localhost", "webuid", "webpwd");
mysql_select_db("kgy", $msc);

$mq = "SELECT * FROM test";
$mqr = mysql_query($mq);

- - -
* trigger an error because of the missing argument and missing variable definition
*triggers an error because the table does not exists

But when I try to put the ini_sets in a separate file to include it to the current script being developed no errors show. Is there no way to do this? Do I really have to copy paste all three rows to make it happen?
 
Oops. Suddenly it worked. Dunno what I made differently...
I'll let you know if things change. Sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top