[PHP] passing PhP parameter to JavaScript function

2002-05-02 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi guys,


From PhP, I want to call JavaScript and pass argument to it 

For some reason when I do the following: 
onClick=\return lastCheck($maxa);\ 

and printout maxa in JavaScript, it says maxa is undefined 

maxa is defined in PhP form section. User enters value into a form which
name is maxa. Prior to submittal, I'd like to do smth with the value.

Any ideas why? 

Thanks a lot!

---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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




[PHP] php4.06 vs. php4.1.1

2002-05-01 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi guys,

I have been using PhP 4.06 for sometime, until recently I have upgraded to
PhP 4.1.1.
Unfortunately, I am experiencing some problems with ldap_error. 

Basically, I used the same Netscape ldapsdk with 4.1.1 as I used with
php4.0.6, only now ldap_error for some reason returns garbage values. 
For example, I expect error code 32, and in 4.1.1 I receive the following
value 1083254792 instead of 32 (object doesn't exist)

If I try to find out what the error means, here is what I get - Unknown

Does anyone know whats going on and how to fix it?

Thank you,
Leon

 

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




[PHP] gmp_mod support

2002-03-14 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi guys,

I have compiled PhP 4.1.1 as DSO module specifying --with-gmp support.
Unfortunatelly, I don't have any of gmp API's available. Does anyone know
why it doesn't work for me?

Thank you very much,
Leon

---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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




RE: [PHP] gmp_mod support

2002-03-14 Thread ZILBER,LEONID (HP-NewJersey,ex1)

When I add --with-gmp support, I get an error cannot find gmp.h file, while
I do have ext/gmp/php_gmp.h

Thank you,
Leon

-Original Message-
From: ZILBER,LEONID (HP-NewJersey,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 5:26 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] gmp_mod support


Hi guys,

I have compiled PhP 4.1.1 as DSO module specifying --with-gmp support.
Unfortunatelly, I don't have any of gmp API's available. Does anyone know
why it doesn't work for me?

Thank you very much,
Leon

---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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

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




RE: [PHP] gmp_mod support

2002-03-14 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi,

Was anyone ever successful using gmp extension with PhP 4.1.1?

Thank you,
Leon

-Original Message-
From: ZILBER,LEONID (HP-NewJersey,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 5:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] gmp_mod support


When I add --with-gmp support, I get an error cannot find gmp.h file, while
I do have ext/gmp/php_gmp.h

Thank you,
Leon

-Original Message-
From: ZILBER,LEONID (HP-NewJersey,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 5:26 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] gmp_mod support


Hi guys,

I have compiled PhP 4.1.1 as DSO module specifying --with-gmp support.
Unfortunatelly, I don't have any of gmp API's available. Does anyone know
why it doesn't work for me?

Thank you very much,
Leon

---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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

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

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




[PHP] multilanguage support

2002-02-25 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi,

On our site, we have page with a form a user puts his/her information such
as company name, givenname, etc. Currently, if a name entered is anything
but English characters, PhP fails.

For example, if I enter Norwegian characters lsløæ PhP returns the following
errors:
 Last name field must contain a valid last name
etc.

Does anyone know how can I make my PhP code ISO-8859-1 compliant?

Thank you in advance,
Leon

---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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




[PHP] libmcrypt problem

2002-02-12 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hello,

I am experiencing a weird problem, hopefully someone can help me with it:

Environment:
HP-UX 11.11
PhP ver.4.1.1
libmcrypt 2.4.19

I have successfully built libmcrypt:
/opt/mcrypt/configure --disable-posix-threads
make ; make install

Library is created in /usr/local/lib

I have successfuly built PhP DSO module:
CC=cc ./configure --prefix=/home/bpia \
--with-apxs=/home/bpia/bin/apxs \
  --with-php-config \
--with-ldap=/home/bpia/ldapsdk \
  --with-mcrypt=/opt/mcrypt \
--with-openssl \
--with-db \
--with-gdbm \
--with-zlib \
--with-bz2 \
--with-regex=php \
--enable-inline-optimization \
--enable-debugger \
--enable-magic-quotes \
--enable-track-vars \
--enable-yp \
--without-mysql \
--with-xml \
--with-gmp \
--with-mhash \
--enable-bcmath \
--with-config-file=/home/bpia/php.ini

make 

make install

When I try to restart apache server I get the following errors:
[Tue Feb 12 14:04:57 2002] [warn] VeriSign CVM 2.02: VeriSign
Certificate Validation Module, Version 2.02 starting up!
/usr/lib/dld.sl: Unresolved symbol: end_mcrypt_cfb (code)  from
/opt/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mcrypt_cfb (code)  from
/opt/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mcrypt_cbc (code)  from
//opt/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: end_mcrypt_ofb (code)  from
//opt/apache/modules/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mcrypt_ecb (code)  from
/opt/apache/modules/libphp4.so
etc.

I checked and the above symbols are defined in libmcrypt.2.2.5 which is in
php/ext/mcrypt directory. 
Why does PhP configure script go to ext/mcrypt directory even when I
specifically specify to go to mcrypt directory?

# nm -p libmcrypt.sl  // doesn't defined the above unresolved symbols

# cd /opt/php/ext/mcrypt ; nm -p libmcrypt.2.5.sl // defines the above
mentioned symbols.


P.S. If I used libmcrypt.2.2.5, everything works fine. I *have to* use
libmcrypt.2.4.2.

Any ideas?

Thank you in advance!
Leon


---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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




[PHP] using POST

2002-02-12 Thread ZILBER,LEONID (HP-NewJersey,ex1)

Hi guys,

I have assembled an XML file, encrypted it and now ready to pass it to an
outside server.

$encryptedXML file contains encrypted value of an XML file

How can I send the XML-(URL encoded) within the HTTPS-POST. The reason for
sending the cleartext XML URL encoded is to allow for the special characters
such as ''  and '' to be sent across the HTTP protocol.

$msgToBePosted = EOD
htmlheadtitlePost/title/head
form method='POST'
action='https://alpha.server.com/test/DeliverReg/default.asp'
input type=hidden name=PARAMS value=$encryptedXMLFile
/form/body/html
EOD;

Do you know how can I POST the above $msgToBePosted? 
Basically, I want to pass the above form to the
https://alpha.server.com/test/DeliverReg/default.asp, the value must be
hidden, having name=PARAMS and value=$encryptedXMLFile

Thank you,
Leon
---
Leon Zilber
HP Internet Operation RD Lab
phone: 973.443.78.82
email: [EMAIL PROTECTED]

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