|
Posted by David Hinschberger on 03/02/06 17:39
I found my problem.
The php.ini.recommended file has extension_dir = "./"
I changed it to extension_dir = "./ext"
I should have changed it to extension_dir = "c:/php/ext"
Apache requires a full path not a relative path as would be expected.
"Jim Michaels" <NOSPAMFORjmichae3@yahoo.com> wrote in message
news:SZqdnf6vwP96Ap7ZRVn-pA@comcast.com...
>
> "David Hinschberger" <dhinschb@hotmail.com> wrote in message
> news:43ffc527$0$20000$6d36acad@titian.nntpserver.com...
>> Hi
>>
>> I'm new to php and have just setup mysq 5.011l, apache 2.0.55 and php
>> 5.1.2.2 on windows xp pro sp2.
>>
>> Using php test code
>> <?php
>> echo ("Step 1\n");
>> $link = mysqli_connect("localhost", "root", "");
>>
>> /* check connection */
>> if (!$link) {
>> printf("Connect failed: %s\n", mysqli_connect_error());
>> exit();
>> }
>>
>> printf("Host information: %s\n", mysqli_get_host_info($link));
>>
>> /* close connection */
>> mysqli_close($link);
>> echo ("Step 2");
>> ?>
>>
>> the CLI outputs
>> Step 1
>> Host information: localhost via TCP/IP
>> Step 2
>> as expected.
>>
>> IE 6.0 sp2 when calling the php file outputs
>> Step 1
>> and nothing more.
>>
>> Any ideas how to get Apache to output what the CLI does.
>>
>> PS I have configured mysql extensions to be active in php.ini
>
>
> error_reporting = E_ALL
>
>
>>
>> changed extensions dir to
>> extension_dir = "./ext/"
>>
>> uncommented
>> extension=php_mysql.dll
>> extension=php_mysqli.dll
>>
>> added lines to httpd.conf
>> PHPIniDir "C:/php"
>> LoadModule php5_module "c:/php/php5apache2.dll"
>> AddType application/x-httpd-php .php
>>
>> *** Free account sponsored by SecureIX.com ***
>> *** Encrypt your Internet usage with a free VPN account from
>> http://www.SecureIX.com ***
>
>
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
Navigation:
[Reply to this message]
|