Re: [PHP] PHP without php.ini

2005-08-13 Thread Burhan Khalid

Bagus Nugroho wrote:

I was uncomment php_mysql.dll and added php_mysqli.dll, put edited php.ini as 
recommended, also added libmysql.dll on c:\winnt\system32. But it still doesn't work, it 
still generate "cannot load mysql extension, ...".

Previously, I was edit system variables(edit Path variable by add 
;c:\php;c:\php\ext and add PHPRC > value c:\php), also edit Registry as the 
following :
[HKLM\SOFTWARE\PHP]
"IniFilePath"="C:\PHP"

PHP installed on C:\PHP
Apache 2.0 on C:\Program Files\Apache Group\ ...
MySQL on C:\Program Files\MySQL

I hope, someone can help me to solve the problem before I'm return back to PHP4.


Did you add the following line to your Apache configuration?

# configure the path to php.ini
PHPIniDir "C:/php"

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



RE: [PHP] PHP without php.ini

2005-08-13 Thread Bagus Nugroho
I was uncomment php_mysql.dll and added php_mysqli.dll, put edited php.ini as 
recommended, also added libmysql.dll on c:\winnt\system32. But it still doesn't 
work, it still generate "cannot load mysql extension, ...".

Previously, I was edit system variables(edit Path variable by add 
;c:\php;c:\php\ext and add PHPRC > value c:\php), also edit Registry as the 
following :
[HKLM\SOFTWARE\PHP]
"IniFilePath"="C:\PHP"

PHP installed on C:\PHP
Apache 2.0 on C:\Program Files\Apache Group\ ...
MySQL on C:\Program Files\MySQL

I hope, someone can help me to solve the problem before I'm return back to PHP4.

Thanks and Thanks




-Original Message-
From: Lester Caine [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 14, 2005 4:46 AM
To: Bagus Nugroho
Subject: Re: [PHP] PHP without php.ini




Bagus Nugroho wrote:

> Actually, my problem is when used phpmyadmin it was generate error "cannot 
> load mysql extension". Then I'm trying to resolve as refer 
> php-manual(included edit system environment), googling but the result is none.
>  
> I'm give up, and remove all php.ini to ensure is the problem on php.ini or 
> others. 
>  
> Any idea, what is wrong?

As you have already found, the default location for php.ini on windows 
is the windows directory ( c:\winnt\ on W2k )
PHP5 does not now load MySQL be default since the licence restrictions 
changed, and you now need to select the correct version of extension to 
match the version of MySQL.
So you need to 'uncomment' extension=php_mysql.dll or 
extension=php_mysqli.dll for pre or post Version 4 MySQL

-- 
Lester Caine
-
L.S.Caine Electronic Services

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



Re: [PHP] PHP without php.ini

2005-08-13 Thread Lester Caine

Bagus Nugroho wrote:


Actually, my problem is when used phpmyadmin it was generate error "cannot load 
mysql extension". Then I'm trying to resolve as refer php-manual(included edit 
system environment), googling but the result is none.
 
I'm give up, and remove all php.ini to ensure is the problem on php.ini or others. 
 
Any idea, what is wrong?


As you have already found, the default location for php.ini on windows 
is the windows directory ( c:\winnt\ on W2k )
PHP5 does not now load MySQL be default since the licence restrictions 
changed, and you now need to select the correct version of extension to 
match the version of MySQL.
So you need to 'uncomment' extension=php_mysql.dll or 
extension=php_mysqli.dll for pre or post Version 4 MySQL


--
Lester Caine
-
L.S.Caine Electronic Services

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



RE: [PHP] PHP without php.ini

2005-08-13 Thread Bagus Nugroho
Actually, my problem is when used phpmyadmin it was generate error "cannot load 
mysql extension". Then I'm trying to resolve as refer php-manual(included edit 
system environment), googling but the result is none.
 
I'm give up, and remove all php.ini to ensure is the problem on php.ini or 
others. 
 
Any idea, what is wrong?



From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Sun 14-Aug-2005 03:44
To: Bagus Nugroho
Subject: Re: [PHP] PHP without php.ini





Bagus Nugroho wrote:
> Hi All,
>
> As my previous mail about fail on PHP5-MySQL, then I removed all of php.ini 
> (included -recomended and -dist).
> Then used phpinfo(), I found there is php still work and found and informed 
> "Configuration File(php.ini) Path = C:\WINNT".
>

if there is no php.ini php defaults to whatever is the default for all settings.
and your on windows - php (IIRC) looks for a php.ini in the windows dir if it 
can't
find on elsewhere (sometimes it live there too)

> How can this be happenned?
> (I believe, this will answer why cannnot load MySQL extension problem on my 
> Win2000)

possibly or php can't find the extension or it a case of that you need to be 
using the mysqli
extension (and load that) instead mysql.

>
> Thanks in advance for your answer.
>