You are not logged in.
For some reason, PHP is refusing to display ANY output whatsoever. I have error reporting, output buffering, session.auto_start, etc. all enabled, and neither of these seem to be doing the trick. I've followed the following guide so far:
https://wiki.archlinux.org/index.php/LAMP
I was able to set it up, working perfectly (with MySQL), and no problems in terms of my test.php file which simply outputs the `phpinfo()` function. However, when I try to do a `var_dump( $res )` on anything, or an `echo`, or whatever, I'm lost as to what can be done.
code from test.php (which is different than the one which outputs `phpinfo()`):
<?php
//error_reporting( E_ALL );
include_once( 'includes/database.php' );
use includes\Database;
$database = new Database( 'evolve_admin' );
$res = $database->fetchRow(
'evol_users',
array( 'user.id', 'user.email', 'user.firstname' ),
array( 'user.email' => 'test1234@test.com' )
);
var_dump( $res );
echo __LINE__;
?>
Thus, I'm not sure exactly what to do about this. Could someone help me out here?
Last edited by holland01 (2012-03-31 23:25:07)
Offline
Right, but the issue is that it doesn't print/output anything - not even a string. Period. If you look at the code, you'll see I'm trying to print `$res`, which is, in fact, not even outputting `(NULL)`, which should be the case.
Last edited by holland01 (2012-03-31 23:25:56)
Offline
no, var_dump returns nothing. it `prints` to the output buffer directly.
Are you sure there are no output-control functions called in database.php or so?
Try calling 'ob_end_flush()' after 'echo __LINE__;'
Offline