[PHP] Problem: mysqli class not found

2005-02-17 Thread Dave Adler
I have an install of PHP 5 on Windows 2003 Server with Apache 2 and when I 
reference mysqli in my php code, I get an error that the mysqli class is not 
found.

I looked at the php.ini file and I added a line for php_mysqli in the 
extensions section and I edited the extension_dir directive to point to 
c:\php\ext folder (I used "/php/ext" as the value assigned to the directive.

I made sure that the c:\php\ext folder actually had a file called 
php_mysqli.dll, which it did.

No I can't start my Apache server.

I had done a default install of both Apache 2 and PHP 5.

Any ideas as to how I can get the mysqli class identified and allow my 
Apache server to start.

Thanks,

David 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem with Include function using Apache 2.0 and PHP 5 on W2K3 Server

2005-02-16 Thread Dave Adler
Richard,

Thanks for the feedback. The reference to the file location was the problem.

My include statement was
  include("/includes/menu.inc");

I changed it to
  include ($_SERVER["DOCUMENT_ROOT"]."/includes/menu.inc");

This solved the problem.

David


"Richard Lynch" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Dave Adler wrote:
>> I am new to PHP and Apache. I am trying to use the include function to
>> include a file that has my web page header and menu, similar to what I
>> used
>> to do with SSI.
>>
>> The content of the include file doesn't display. Instead, I get a link
>> that
>> says function.main and below that I get a link that says function.include
>>
>> I can run other PHP code with no problem. The include files are in a
>> folder
>> below the doc root called Includes.
>>
>> This is running on Windows 2003 Server. I did a default install of Apache
>> 2.0 and PHP 5.
>>
>> This is probably a settig in httpd.conf or php.ini but I can't seem to
>> find
>> it in the docs.
>
> Hunh?
>
> Give us a link to your page, or use "View Source" on the browser and post
> the HTML you got for the include parts.
>
> There's NO WAY you could have literally managed to break PHP's include
> statement -- So you've got to be doing something else wrong.
>
> Perhaps your include_path setting is not what you want?
>
> -- 
> Like Music?
> http://l-i-e.com/artists.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with Include function using Apache 2.0 and PHP 5 on W2K3 Server

2005-02-16 Thread Dave Adler
I am new to PHP and Apache. I am trying to use the include function to 
include a file that has my web page header and menu, similar to what I used 
to do with SSI.

The content of the include file doesn't display. Instead, I get a link that 
says function.main and below that I get a link that says function.include

I can run other PHP code with no problem. The include files are in a folder 
below the doc root called Includes.

This is running on Windows 2003 Server. I did a default install of Apache 
2.0 and PHP 5.

This is probably a settig in httpd.conf or php.ini but I can't seem to find 
it in the docs.

Any help would be greatly appreciated.

Thanks in advance,

David

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php