php-windows Digest 19 Jan 2008 15:45:51 -0000 Issue 3405
Topics (messages 28740 through 28743):
Re: mysql not working but very odd
28740 by: Jacob Kruger
28741 by: Luis Moreira
Re: Unable to load dynamic library "C:\PHP\ext\php_mysql.dll" and Unable to
load dynamic library "C:\PHP\ext\php_mysqli.dll"
28742 by: Jayme Jeffman Filho
Re: Warning: eregi() [function.eregi]: REG_ERANGE in ...
28743 by: Niel Archer
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Didn't really want to either since my 'other' work is specific to IIS etc.,
but anyway...
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
----- Original Message -----
From: "Joaquin Grech" <[EMAIL PROTECTED]>
To: "Jacob Kruger" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2008 6:01 PM
Subject: Re: [PHP-WIN] mysql not working but very odd
Not really, I don't want to run apache at all.
On 1/18/08, Jacob Kruger <[EMAIL PROTECTED]> wrote:
I had similar problems trying to implement PHP and MySQL within IIs,
which
is why I went over to the WAMP installation, where I just stop IIs before
running Apache on the same port etc., and it so far seems alright from
it's
side in terms of configuration, extensions etc.
Got the link from Bill Bold on this list:
http://www.wampserver.com/en/
Not sure if this will help you in your situation, but anyway.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
----- Original Message -----
From: "Joaquin Grech" <[EMAIL PROTECTED]>
To: "Jacob Kruger" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2008 1:23 AM
Subject: Re: [PHP-WIN] mysql not working but very odd
> if I run phpinfo() i see it all, even the mysql module is loaded up
> that's what it's odd, it seems ok when i run php -i output and when i
> run phpinfo() but then when i try to actually use mysql it complains
> it doesn't exists.
>
> On 1/17/08, Jacob Kruger <[EMAIL PROTECTED]> wrote:
>> Not sure if this is relevant, but if you run phpinfo(), it should tell
>> you
>> which php.ini is being implemented, and in that, maybe just
>> double-check
>> that the correct paths for the ext's is being implemented to actually
>> load
>> those extensions.
>>
>> HTH
>>
>> Jacob Kruger
>> Blind Biker
>> Skype: BlindZA
>> '...Fate had broken his body, but not his spirit...'
>>
>> ----- Original Message -----
>> From: "Joaquin Grech" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Thursday, January 17, 2008 3:02 PM
>> Subject: [PHP-WIN] mysql not working but very odd
>>
>>
>> > Ok,
>> >
>> > I had php installed on a server with mysql module and I just copied
>> > all
>> > the
>> > files over to a new machine. It didn't work. I tried reinstalling
>> > and
>> > all,
>> > still same issue.
>> >
>> > I ran php -I output and it seems to be all ok, this is part of the
>> > output:
>> >
>> >
>> >
>> > mysql
>> >
>> >
>> >
>> > MySQL Support => enabled
>> >
>> > Active Persistent Links => 0
>> >
>> > Active Links => 0
>> >
>> > Client API version => 5.0.37
>> >
>> >
>> >
>> > Directive => Local Value => Master Value
>> >
>> > mysql.allow_persistent => On => On
>> >
>> > mysql.connect_timeout => 60 => 60
>> >
>> > mysql.default_host => localhost => localhost
>> >
>> > mysql.default_password => no value => no value
>> >
>> > mysql.default_port => 3306 => 3306
>> >
>> > mysql.default_socket => no value => no value
>> >
>> > mysql.default_user => no value => no value
>> >
>> > mysql.max_links => Unlimited => Unlimited
>> >
>> > mysql.max_persistent => Unlimited => Unlimited
>> >
>> > mysql.trace_mode => Off => Off
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > Now, when I try to load a page I get an error:
>> >
>> > This page cannot be displayed due to an internal error.
>> >
>> > You can provide the following information to the administrators of
>> > this
>> > site
>> > to help them solve the problem:
>> >
>> > Error: mysql extension not loaded
>> >
>> >
>> >
>> > You can see the error in http://www.unionlatina.org/
>> >
>> >
>> >
>> > Any ideas what's going on? I tried putting the files in
>> > c:\windows\system32
>> > and same thing, I can't think of anything else. I've installed,
>> > reinstalled,
>> > restarted, removed, downgraded, upgraded, copy the exact files.
>> > nothing
>> > always the same error.
>> >
>> >
>>
>>
>
--- End Message ---
--- Begin Message ---
On PHP.INI you should have a line like "extension_dir" that says which
directory holds the extensions, I think.
Do you ?
Is it correct and pointing to were you do have the extensions ?
Luis Moreira
-----Original Message-----
From: Joaquin Grech [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 18 de Janeiro de 2008 16:12
To: Bruce Cowin
Cc: Jacob Kruger; Subject: Re: [PHP-WIN] mysql not working but very odd
bruce,
I just upgraded php to make sure all is good and i see this problem,
my php.ini is in c:\php but it's reading it from c:\windows
i copied it over but same problem, any ideas?
On 1/17/08, Bruce Cowin <[EMAIL PROTECTED]> wrote:
> And if it's not pointing to the php.ini file you may need the registry
> entry as per my previous email.
>
>
>
> Regards,
>
> Bruce
>
> >>> "Jacob Kruger" <[EMAIL PROTECTED]> 18/01/2008 8:50:44 a.m. >>>
> Not sure if this is relevant, but if you run phpinfo(), it should tell
> you
> which php.ini is being implemented, and in that, maybe just
> double-check
> that the correct paths for the ext's is being implemented to actually
> load
> those extensions.
>
> HTH
>
> Jacob Kruger
> Blind Biker
> Skype: BlindZA
> '...Fate had broken his body, but not his spirit...'
>
> ----- Original Message -----
> From: "Joaquin Grech" <
> [EMAIL PROTECTED]>
> To: <
> [EMAIL PROTECTED]>
> Sent: Thursday, January 17, 2008 3:02 PM
> Subject: [PHP-WIN] mysql not working but very odd
>
> > Ok,
> >
> > I had php installed on a server with mysql module and I just copied
> all
> > the
> > files over to a new machine. It didn't work. I tried reinstalling and
> all,
> > still same issue.
> >
> > I ran php -I output and it seems to be all ok, this is part of the
> output:
> >
> >
> >
> > mysql
> >
> >
> >
> > MySQL Support => enabled
> >
> > Active Persistent Links => 0
> >
> > Active Links => 0
> >
> > Client API version => 5.0.37
> >
> >
> >
> > Directive => Local Value => Master Value
> >
> > mysql.allow_persistent => On => On
> >
> > mysql.connect_timeout => 60 => 60
> >
> > mysql.default_host => localhost => localhost
> >
> > mysql.default_password => no value => no value
> >
> > mysql.default_port => 3306 => 3306
> >
> > mysql.default_socket => no value => no value
> >
> > mysql.default_user => no value => no value
> >
> > mysql.max_links => Unlimited => Unlimited
> >
> > mysql.max_persistent => Unlimited => Unlimited
> >
> > mysql.trace_mode => Off => Off
> >
> >
> >
> >
> >
> >
> >
> > Now, when I try to load a page I get an error:
> >
> > This page cannot be displayed due to an internal error.
> >
> > You can provide the following information to the administrators of
> this
> > site
> > to help them solve the problem:
> >
> > Error: mysql extension not loaded
> >
> >
> >
> > You can see the error in
> http://www.unionlatina.org/
> >
> >
> >
> > Any ideas what's going on? I tried putting the files in
> > c:\windows\system32
> > and same thing, I can't think of anything else. I've installed,
> > reinstalled,
> > restarted, removed, downgraded, upgraded, copy the exact files.
> nothing
> > always the same error.
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,
I've accepted your suggestion and I've put a copy of the
extension dlls I was trying to load dynamicaly. It didn't
work out though. I am still getting the same message of
file not found.
I think the only way is to uninstall the Apache software
and restart from the begining.
Do you know how can I found all the Apache entries
in the Windows registry ? I've deleted some folders
manualy, without using the unistall feature and now I
don't know where the Apache Monitor is taking the
informatio to show the old versions of Apache which
I do not have any more.
TIA
Jayme.
--- End Message ---
--- Begin Message ---
Hi
> OK, I don't think I searched the web hard enough. I've not found a
> definitive explanation, but I think the warning has something to do
> with the dash symbols (\-) within the square brackets. Removing them -
> changing them to the regular expression below - removes the warning
>
> '[EMAIL PROTECTED]'
> Question is now, how am I supposed to match dash symbols?
The problem is that you included the "\-" within SINGLE quotes. Escaping
a character only works within double quotes. Go back to your original
but substitute the ' for " around the expression. Like this:
define("EMAIL_RE", "[EMAIL PROTECTED]");
>
> In one thread I read advised preg functions using the ereg functions.
> I had ago with this, putting back in the dashes and changing the
> regular expression to a perl RE:
>
> '/[EMAIL PROTECTED]/'
>
> No warnings this time and it appears to work. I still welcome any
> feedback on ereg if anyone wants to give any.
--
Niel Archer
--- End Message ---