php-windows Digest 5 Aug 2004 19:36:58 -0000 Issue 2347
Topics (messages 24349 through 24353):
mysql 4.0.12 + php5 + WindowXP = problem
24349 by: Bogdan Ribic
24350 by: Bogdan Ribic
24353 by: Niels Folmer
Error opening dictionary with php pspell function pspell_new
24351 by: Glyn Burton
Re: Setting redirect after HTTP upload
24352 by: Bogdan Ribic
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 ---
Hello everyone
I have a strange problem with freshly installed php5, 5.0 final. I
did some web searching and found out how to get php_mysql.dll loaded
into php - I needed to copy libmysql do windows\system32 and uncomment
extension=php_mysql.dll
But whenever I try to connect to local mysql server, it just says it
cannot connect. Not that authorization failed, wrong password etc, but
cannot connect. sql.safemode is off.
If I try same with php4, same username / password etc, everything
works.
I tried both mysql and mysqli versions, both failed. Tried with
libmysql.dll from mysql distribution, but then php cannot even load
php_mysql.dll so I use one that came with php5. I found somewhere that
it has to do with differences between mysql3 and mysql4 versions of
libmysql.dll (two functions are removed from dll in newer version). One
that comes with php5 is some 3.52.whatever version of mysqlclient
library, I think.
So, what am I doing wrong? Do I need another version of
php_mysql.dll?
Thanx in advance.
Boban.
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
--- End Message ---
--- Begin Message ---
Forgot to add, I have php5 in c:\php5 and php4 installed in c:\php4,
could that cause problems? I configure IIS properly, but could other
installation cause problems?
--- End Message ---
--- Begin Message ---
Bogdan Ribic wrote:
Hello everyone
I have a strange problem with freshly installed php5, 5.0 final. I
did some web searching and found out how to get php_mysql.dll loaded
into php - I needed to copy libmysql do windows\system32 and uncomment
extension=php_mysql.dll
i think you need to add "extension=php_mysqli.dll" rather and put
php_mysqli.dll in your extension directory. That DLL is included in the
PECL package available on php.net. This works fine for me, am also
running PHP4 and 5 on a winbox, but with my MySQL server running on a
linux machine.
niels
--- End Message ---
--- Begin Message ---
I'm trying to get up and running using the pspell functions on Windows.
It seems everything is installed OK. I can use aspell from the Windows
command prompt fine. PHP thinks the pspell module is loaded OK.
However, when I try to execute the pspell_new function I get the
following: -
"Warning: PSPELL couldn't open the dictionary. reason: No word lists
can be found for the language "en". in ..."
I have installed both an english and welsh dictionary and they both work
find using aspell from the Windows command prompt.
The strange thing is that if I call pspell_new twice then it seems to
succeed 2nd time. See code sample and correctsponding output below: -
CODE
/* Set up test data */
$cWords[0] = "good";
$cWords[1] = "badd";
$numWords = count($cWords);
/* Load the dictionary */
$pDict = pspell_new("en");
echo("pDict is $pDict<br>\n");
$pDict = pspell_new("en");
echo("pDict is $pDict<br>\n");
/* Check the words */
for($i=0; $i<$numWords; $i++)
{
if(pspell_check($pDict, $cWords[$i]))
echo("$cWords[$i] is spelled OK<br>\n");
else
echo("$cWords[$i] is misspelled<br>\n");
}
OUTPUT
Warning: PSPELL couldn't open the dictionary. reason: No word lists can
be found for the language "en". in C:\Program Files\Apache
Group\Apache2\htdocs\php\RemoteAdstract\preview.php on line 22
pDict is
pDict is 2
good is spelled OK
badd is misspelled
ENVIRONMENT
Windows XP service pack 1
PHP 4.3.8
Aspell 0.50.3
Apache 2.0.47
Any advice or suggestion appreciated.
- Glyn
--- End Message ---
--- Begin Message ---
header ("Location: /some_url.php\n\n");
// \n\n included cos I read it in the manual years ago
You can always use meta tag refresh. On one occasion, redirecting from
headers didn't work for me on one page and worked on another, although I
used (or rather included) same code on both places, and it was IIS 5.1
and IE 6 - Mozilla was being redirecte without problems.
Boban.
--
Please answer to the list and not to my email directly.
I use usenet server and do not check yahoo email account.
--- End Message ---