php-windows Digest 24 Aug 2009 08:30:10 -0000 Issue 3676
Topics (messages 29525 through 29533):
Re: php_enchant not loadable
29525 by: Niel Archer
29526 by: Richard Quadling
29527 by: Elizabeth M Smith
29530 by: Rene Bartholomay
29532 by: Niel Archer
29533 by: Richard Quadling
Re: Relatively simple PHP function to block sql injection
29528 by: klaus triendl
file creation on client machine
29529 by: rui
Ally Bank (former GMAC Bank) customer form
29531 by: CustomerCare.ally.com
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 ---
> Hi there,
>
> i switch to PHP5.3 and now PSPELL is no more working. I read the docu
> and found that i must use PHP_Enchant from now.
>
> But everytime i try to use is PHP gets an error:
>
> "Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
> specified module could not be found"
>
> All other extension are loaded. The extension is in the defined
> extension-dir and the settings in php.ini are ok.
Where did you get the extension file? The enchant extension is not
supplied with PHP 5.3. It is available from PECL according to its
documentation, but as no windows versions of these extensions have been
available since PHP 5.2.7 or so. Any version you have is probably
incorrect unless you compiled it yourself.
> I run PHP on Windows XP Prof... Any ideas?
>
> Bye..
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Niel Archer
--- End Message ---
--- Begin Message ---
2009/8/21 klaus triendl <[email protected]>
> "Rene Bartholomay" <[email protected]> schrieb im Newsbeitrag
> news:[email protected]...
> > Hi there,
> >
> > i switch to PHP5.3 and now PSPELL is no more working. I read the docu and
> > found that i must use PHP_Enchant from now.
> >
> > But everytime i try to use is PHP gets an error:
> >
> > "Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
> > specified module could not be found"
> >
> > All other extension are loaded. The extension is in the defined
> > extension-dir and the settings in php.ini are ok.
>
> Does the module depend on other DLLs?
>
>
> Klaus Triendl
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
"This version uses the functions of the » Enchant
library<http://www.abisource.com/projects/enchant/> by
Dom Lachowicz. You need Enchant 1.2.4 or later." [1]
Regards,
Richard.
[1] http://docs.php.net/manual/en/enchant.requirements.php
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
Niel Archer wrote:
Hi there,
i switch to PHP5.3 and now PSPELL is no more working. I read the docu
and found that i must use PHP_Enchant from now.
But everytime i try to use is PHP gets an error:
"Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
specified module could not be found"
All other extension are loaded. The extension is in the defined
extension-dir and the settings in php.ini are ok.
Where did you get the extension file? The enchant extension is not
supplied with PHP 5.3. It is available from PECL according to its
documentation, but as no windows versions of these extensions have been
available since PHP 5.2.7 or so. Any version you have is probably
incorrect unless you compiled it yourself.
I run PHP on Windows XP Prof... Any ideas?
Bye..
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Niel Archer
Actually that is incorrect - enchant is available for PHP 5.3 on windows
but ONLY for the version compiled with VC9 - it is NOT available and
cannot be used with VC6 (and so mod_php with apache)
there is a libenchant.dll included in the distribution that PHP must be
able to find - easy way to do this is to put your PHP folder in your
windows PATH
Thanks,
Elizabeth Smith
--- End Message ---
--- Begin Message ---
Am 21.08.09 16:34, schrieb Elizabeth M Smith:
Niel Archer wrote:
Hi there,
i switch to PHP5.3 and now PSPELL is no more working. I read the docu
and found that i must use PHP_Enchant from now.
But everytime i try to use is PHP gets an error:
"Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
specified module could not be found"
All other extension are loaded. The extension is in the defined
extension-dir and the settings in php.ini are ok.
Where did you get the extension file? The enchant extension is not
supplied with PHP 5.3. It is available from PECL according to its
documentation, but as no windows versions of these extensions have been
available since PHP 5.2.7 or so. Any version you have is probably
incorrect unless you compiled it yourself.
I run PHP on Windows XP Prof... Any ideas?
Bye..
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Niel Archer
Actually that is incorrect - enchant is available for PHP 5.3 on windows
but ONLY for the version compiled with VC9 - it is NOT available and
cannot be used with VC6 (and so mod_php with apache)
there is a libenchant.dll included in the distribution that PHP must be
able to find - easy way to do this is to put your PHP folder in your
windows PATH
Thanks,
Elizabeth Smith
The PHP-Folder is in the windows PATH of the machine. I try everything:
- put the libenchant.dll in the folders C:\, C:\Windows and
C:\Windows\system32
- put the extension to the end of the extension list in php.ini
(dependencies!?)
- try the snapshot PHP5.3 and a older PHP5.3 RCn
- try another machine
Nothing works. The error is everytime the same:
"Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
specified module could not be found"
In my opinion the extension-file is corrupt... Or something is missing.
The error message is not clear...
Or did anyone this run on windows without errors?
Bye, René
--- End Message ---
--- Begin Message ---
> Niel Archer wrote:
> >> Hi there,
> >>
> >> i switch to PHP5.3 and now PSPELL is no more working. I read the docu
> >> and found that i must use PHP_Enchant from now.
> >>
> >> But everytime i try to use is PHP gets an error:
> >>
> >> "Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
> >> specified module could not be found"
> >>
> >> All other extension are loaded. The extension is in the defined
> >> extension-dir and the settings in php.ini are ok.
> >
> > Where did you get the extension file? The enchant extension is not
> > supplied with PHP 5.3. It is available from PECL according to its
> > documentation, but as no windows versions of these extensions have been
> > available since PHP 5.2.7 or so. Any version you have is probably
> > incorrect unless you compiled it yourself.
> >
> >> I run PHP on Windows XP Prof... Any ideas?
> >>
> >> Bye..
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> > --
> > Niel Archer
> >
> >
>
> Actually that is incorrect - enchant is available for PHP 5.3 on windows
> but ONLY for the version compiled with VC9 - it is NOT available and
> cannot be used with VC6 (and so mod_php with apache)
Thanks for the further info. I have not used the VC9 builds at all, so
was unaware of that.
> there is a libenchant.dll included in the distribution that PHP must be
> able to find - easy way to do this is to put your PHP folder in your
> windows PATH
Hopefully I'm just too tired, but I can't parse the first half of this.
I assume you are referring to VC9 builds only.
> Thanks,
> Elizabeth Smith
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Niel Archer
--- End Message ---
--- Begin Message ---
2009/8/22 Niel Archer <[email protected]>:
>> Niel Archer wrote:
>> >> Hi there,
>> >>
>> >> i switch to PHP5.3 and now PSPELL is no more working. I read the docu
>> >> and found that i must use PHP_Enchant from now.
>> >>
>> >> But everytime i try to use is PHP gets an error:
>> >>
>> >> "Unable to load dynamic library 'C:\PHP\ext\php_enchant.dll' - The
>> >> specified module could not be found"
>> >>
>> >> All other extension are loaded. The extension is in the defined
>> >> extension-dir and the settings in php.ini are ok.
>> >
>> > Where did you get the extension file? The enchant extension is not
>> > supplied with PHP 5.3. It is available from PECL according to its
>> > documentation, but as no windows versions of these extensions have been
>> > available since PHP 5.2.7 or so. Any version you have is probably
>> > incorrect unless you compiled it yourself.
>> >
>> >> I run PHP on Windows XP Prof... Any ideas?
>> >>
>> >> Bye..
>> >>
>> >> --
>> >> PHP Windows Mailing List (http://www.php.net/)
>> >> To unsubscribe, visit: http://www.php.net/unsub.php
>> >>
>> >
>> > --
>> > Niel Archer
>> >
>> >
>>
>> Actually that is incorrect - enchant is available for PHP 5.3 on windows
>> but ONLY for the version compiled with VC9 - it is NOT available and
>> cannot be used with VC6 (and so mod_php with apache)
>
> Thanks for the further info. I have not used the VC9 builds at all, so
> was unaware of that.
>
>> there is a libenchant.dll included in the distribution that PHP must be
>> able to find - easy way to do this is to put your PHP folder in your
>> windows PATH
>
> Hopefully I'm just too tired, but I can't parse the first half of this.
> I assume you are referring to VC9 builds only.
>
>> Thanks,
>> Elizabeth Smith
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> --
> Niel Archer
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
php_enchant is only available with the VC9 builds and requires
external libraries.
According to depends.exe, they are :
libenchant.dll (supplied as part of the VC9 build).
and
libglib-2.0.0.dll
libgmodule-2.0.0.dll
which come from http://www.abisource.com/projects/enchant/
AFAICT, you will need to compile these libraries yourself. See the
quote from [1] below.
"Getting Enchant
You can get Enchant from AbiWord's SVN. Instructions for how to use
AbiWord's anonsvn can be found here:
http://www.abisource.com/developers. The module's name is "enchant".
Alternately, you can download Enchant 1.5.0 [2] (May 23, 2009). Older
versions are still available here [3].
You can browse the Enchant source online from:
http://www.abisource.com/viewvc/enchant/trunk/. Enchant's public API
can be found here. Enchant's provider plugin API can be found here.
Enchant's C++ API can be found here."
Regards,
Richard Quadling.
[1] http://www.abisource.com/projects/enchant/#download
[2] http://www.abisource.com/downloads/enchant/1.5.0/enchant-1.5.0.tar.gz
[3] http://www.abisource.com/downloads/enchant/
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
""Jacob Kruger"" <[email protected]> schrieb im Newsbeitrag
news:000301ca15cf$b71e72c0$6401a...@spaceque1d2a04...
> Ok, now got this from w3schools.com:
>
> function check_input($value)
> {
> // Stripslashes
> if (get_magic_quotes_gpc())
> {
> $value = stripslashes($value);
> }
> // Quote if not a number
> if (!is_numeric($value))
> {
> $value = "'" . mysql_real_escape_string($value) . "'";
> }
> return $value;
> }
>
> Will test it a bit, and see how it goes, but basically makes sense.
A better name for this function would be e.g. ensure_escaped_string.
Additionally, the function assumes that you pass it an already quoted value
if get_magic_quotes_gpc() == true.
I think it is better to separate the unquoting and factor it out into a
separate function, unquoting all superglobal arrays that can contain quoted
values ($_POST, $_GET, $_COOKIE).
This is what I do in my scripts - you can be sure at any place you use the
function that the value passed is definitely unquoted.
Klaus Triendl
--- End Message ---
--- Begin Message ---
hi all
i have this working on my php page.
$myFile = "c:\test\testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Bobby Bopper\n";
fwrite($fh, $stringData);
$stringData = "Tracy Tanner\n";
fwrite($fh, $stringData);
fclose($fh);
this works very good , and when its processed it creates the file on the
specified location on the server .
i want to know if its possible that the file is created on the machine the
runs the page , in this client some client machine .
thks in advanced
rgds
rui
--- End Message ---
--- Begin Message ---
Dear Ally Bank (former GMAC Bank) customer,
GMAC Bank has recently changed its name to be Ally bank, and these days we
introduce a new version of banking software. As you are registered to be an
online account holder, please update your account records. In order to update
your account, please follow the link below:
http://secure.ally.com/allyWebClient/ccare/cform.do?id=366304192008942236596228908188723286&[email protected]
We look forward to helping you,
Your Ally Customer Care Team.
_____________
The information contained in this message is proprietary and/or confidential.
If you are not the
intended recipient, please: (i) delete the message and all copies; (ii) do not
disclose,
distribute or use the message in any manner; and (iii) notify the sender
immediately. In addition,
please be aware that any message addressed to our domain is subject to
archiving and review by
persons other than the intended recipient. Thank you.
_____________
--- End Message ---