Re: mysqli error?



marky wrote:
Hi,

I'm just setting up my php enviroment and I typed in a simple script
but it wont run
past the mysqli_connect statement

The script is

<?php
echo ("starting");
$mysqli = mysqli_connect("localhost", "joeuser", "somepass",
"testDB");
echo ("exiting");
?>

I have created testDB with correct user and privaledges etc in mySql
monitor
its not that the script fails. The echo existing command never runs.

I'm running Apache 2.2.8 and php5.2.5 in java I need to load an sql
driver. Is there a php driver for sql I need to load in?
If I remove the mysqli line then everything runs fine. I've tried
debugging with xdeub on netbeans 6.5 but as soon as it reaches the
connect line I loose the trace.
I'm a total novice at php so I've included all the config files I
think are important but if I've missed something out please asked me.

marky


<snip 2,655 lines of irrelevant data>

Enable all errors and display them.

In your php.ini file, put:

error_reporting=E_ALL
display_errors=on

Restart Apache and see what error you get.

And please - before posting thousands of lines, ensure they are relevant to the question and the newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • NOCC Webmail <= 1.0 multiple vulnerabilities
    ... "NOCC is a webmail client written in PHP. ... remote code execution, there are two ways of execute arbitrary code on ... is defined in conf.php, by default no path is defined, but script suggests ... echo nl2br); ...
    (Bugtraq)
  • Re: [PHP] Help with an error...
    ... I am currently working on a php script that will be called by cron. ... echo 'This could not be display due to a system error. ...
    (php.general)
  • Re: [PHP] Help with an error...
    ... I am currently working on a php script that will be called by cron. ... echo 'This could not be display due to a system error. ...
    (php.general)
  • Re: [PHP] Help with an error...
    ... Also, if you want HTML tags in your PHP code, you need to end and start ... I am currently working on a php script that will be called by cron. ... echo 'This could not be display due to a system ...
    (php.general)
  • Re: php in database entry...
    ... in my main php file i retrieve the field and i echo it ... now i need in this field to have a php script to ...
    (comp.lang.php)