|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have php and mysql both working seperately but not together
<?php phpinfo(); ?> - Shows everything working fine but no mention of Mysql in it. Mysql is setup and working properly. Users and databases all connect fine All my PHP scripts which have mysql connection info just show as a blank page. No error messages. Any ideas?!. Would appreciate any input, its driving my crazy. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
David wrote:
> I have php and mysql both working seperately but not together > > <?php phpinfo(); ?> - Shows everything working fine but no mention of > Mysql in it. > > Mysql is setup and working properly. Users and databases all connect fine > > All my PHP scripts which have mysql connection info just show as a blank > page. No error messages. > > Any ideas?!. Would appreciate any input, its driving my crazy. > > > This means the MySQL extension isn't being loaded. Did you enable the mysql extension in your php.ini? Is it loading properly? And is the mysql client .dll (windows) or .so (UNIX) available to be loaded. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com. .. > David wrote: >> I have php and mysql both working seperately but not together >> >> <?php phpinfo(); ?> - Shows everything working fine but no mention of >> Mysql in it. >> >> Mysql is setup and working properly. Users and databases all connect >> fine >> >> All my PHP scripts which have mysql connection info just show as a blank >> page. No error messages. >> >> Any ideas?!. Would appreciate any input, its driving my crazy. > > This means the MySQL extension isn't being loaded. > > Did you enable the mysql extension in your php.ini? Is it loading > properly? > > And is the mysql client .dll (windows) or .so (UNIX) available to be > loaded. I uncommented both extension=php_mysql.dll extension=php_mysqli.dll in php.ini. I'm using Windows. Any ideas how to locate the problem? |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
David wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message > news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com. .. >> David wrote: >>> I have php and mysql both working seperately but not together >>> >>> <?php phpinfo(); ?> - Shows everything working fine but no mention of >>> Mysql in it. >>> >>> Mysql is setup and working properly. Users and databases all connect >>> fine >>> >>> All my PHP scripts which have mysql connection info just show as a blank >>> page. No error messages. >>> >>> Any ideas?!. Would appreciate any input, its driving my crazy. >> This means the MySQL extension isn't being loaded. >> >> Did you enable the mysql extension in your php.ini? Is it loading >> properly? >> >> And is the mysql client .dll (windows) or .so (UNIX) available to be >> loaded. > > > I uncommented both > > extension=php_mysql.dll > extension=php_mysqli.dll > > in php.ini. > > I'm using Windows. Any ideas how to locate the problem? > > > > What about the rest of my question? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com... > David wrote: >> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message >> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com. .. >>> David wrote: >>>> I have php and mysql both working seperately but not together >>>> >>>> <?php phpinfo(); ?> - Shows everything working fine but no mention of >>>> Mysql in it. >>>> >>>> Mysql is setup and working properly. Users and databases all connect >>>> fine >>>> >>>> All my PHP scripts which have mysql connection info just show as a >>>> blank >>>> page. No error messages. >>>> >>>> Any ideas?!. Would appreciate any input, its driving my crazy. >>> This means the MySQL extension isn't being loaded. >>> >>> Did you enable the mysql extension in your php.ini? Is it loading >>> properly? >>> >>> And is the mysql client .dll (windows) or .so (UNIX) available to be >>> loaded. >> >> >> I uncommented both >> >> extension=php_mysql.dll >> extension=php_mysqli.dll >> >> in php.ini. >> >> I'm using Windows. Any ideas how to locate the problem? >> >> >> >> > > What about the rest of my question? > Note quite sure what youre asking. Mysql is loaded and working but php cant see/use it |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
David wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message > news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com... >> David wrote: >>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message >>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com. .. >>>> David wrote: >>>>> I have php and mysql both working seperately but not together >>>>> >>>>> <?php phpinfo(); ?> - Shows everything working fine but no mention of >>>>> Mysql in it. >>>>> >>>>> Mysql is setup and working properly. Users and databases all connect >>>>> fine >>>>> >>>>> All my PHP scripts which have mysql connection info just show as a >>>>> blank >>>>> page. No error messages. >>>>> >>>>> Any ideas?!. Would appreciate any input, its driving my crazy. >>>> This means the MySQL extension isn't being loaded. >>>> >>>> Did you enable the mysql extension in your php.ini? Is it loading >>>> properly? >>>> >>>> And is the mysql client .dll (windows) or .so (UNIX) available to be >>>> loaded. >>> >>> I uncommented both >>> >>> extension=php_mysql.dll >>> extension=php_mysqli.dll >>> >>> in php.ini. >>> >>> I'm using Windows. Any ideas how to locate the problem? >>> >>> >>> >>> >> What about the rest of my question? >> > > Note quite sure what youre asking. Mysql is loaded and working but php > cant see/use it > > > Just what I asked. Is the mysql client dll in a place where PHP can get to it - i.e. in the php extension directory, a directory in your path, etc. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message news:NNadndPIhYmfD4banZ2dnUVZ_qbinZ2d@comcast.com. .. > David wrote: >> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message >> news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com... >>> David wrote: >>>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message >>>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com. .. >>>>> David wrote: >>>>>> I have php and mysql both working seperately but not together >>>>>> >>>>>> <?php phpinfo(); ?> - Shows everything working fine but no mention >>>>>> of >>>>>> Mysql in it. >>>>>> >>>>>> Mysql is setup and working properly. Users and databases all connect >>>>>> fine >>>>>> >>>>>> All my PHP scripts which have mysql connection info just show as a >>>>>> blank >>>>>> page. No error messages. >>>>>> >>>>>> Any ideas?!. Would appreciate any input, its driving my crazy. >>>>> This means the MySQL extension isn't being loaded. >>>>> >>>>> Did you enable the mysql extension in your php.ini? Is it loading >>>>> properly? >>>>> >>>>> And is the mysql client .dll (windows) or .so (UNIX) available to be >>>>> loaded. >>>> >>>> I uncommented both >>>> >>>> extension=php_mysql.dll >>>> extension=php_mysqli.dll >>>> >>>> in php.ini. >>>> >>>> I'm using Windows. Any ideas how to locate the problem? >>>> >>>> >>>> >>>> >>> What about the rest of my question? >>> >> >> Note quite sure what youre asking. Mysql is loaded and working but php >> cant see/use it > > Just what I asked. Is the mysql client dll in a place where PHP can get > to it - i.e. in the php extension directory, a directory in your path, > etc. > Yes. php_mysql.dll etc are all in my /ext directory |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
David wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message > news:NNadndPIhYmfD4banZ2dnUVZ_qbinZ2d@comcast.com. .. >> David wrote: >>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message >>> news:-pmdndvXZq8_xYbanZ2dnUVZ_vPinZ2d@comcast.com... >>>> David wrote: >>>>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message >>>>> news:WdmdnereK_jyLIfanZ2dnUVZ_vXinZ2d@comcast.com. .. >>>>>> David wrote: >>>>>>> I have php and mysql both working seperately but not together >>>>>>> >>>>>>> <?php phpinfo(); ?> - Shows everything working fine but no mention >>>>>>> of >>>>>>> Mysql in it. >>>>>>> >>>>>>> Mysql is setup and working properly. Users and databases all connect >>>>>>> fine >>>>>>> >>>>>>> All my PHP scripts which have mysql connection info just show as a >>>>>>> blank >>>>>>> page. No error messages. >>>>>>> >>>>>>> Any ideas?!. Would appreciate any input, its driving my crazy. >>>>>> This means the MySQL extension isn't being loaded. >>>>>> >>>>>> Did you enable the mysql extension in your php.ini? Is it loading >>>>>> properly? >>>>>> >>>>>> And is the mysql client .dll (windows) or .so (UNIX) available to be >>>>>> loaded. >>>>> I uncommented both >>>>> >>>>> extension=php_mysql.dll >>>>> extension=php_mysqli.dll >>>>> >>>>> in php.ini. >>>>> >>>>> I'm using Windows. Any ideas how to locate the problem? >>>>> >>>>> >>>>> >>>>> >>>> What about the rest of my question? >>>> >>> Note quite sure what youre asking. Mysql is loaded and working but php >>> cant see/use it >> Just what I asked. Is the mysql client dll in a place where PHP can get >> to it - i.e. in the php extension directory, a directory in your path, >> etc. >> > > > Yes. php_mysql.dll etc are all in my /ext directory > > > php_mysql.dll is not the MySQL client library. It is a PHP DLL. The MySQL client libraries are shipped with MySQL and have names like mysqlxxx.dll. You will find them in the MySQL directory hierarchy. These must also be accessible to PHP. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
On Oct 21, 2:48 am, "David" <m...@privacy.net> wrote:
> > I uncommented both > > extension=php_mysql.dll > extension=php_mysqli.dll > > in php.ini. OK, but is that php.ini being used by your system? > I'm using Windows. Any ideas how to locate the problem? Look at your phpinfo() output again. It will show (at the very beginning) the path to php.ini being used. It is possible that PHP is using C:\WINDOWS\php.ini, while the you made changes to is C:\PHP \php.ini or somesuch... If that's the case, add C:\PHP to your PATH or copy your php.ini to C:\WINDOWS... Cheers, NC |
|
![]() |
| Outils de la discussion | |
|
|