php-windows Digest 13 Mar 2001 19:57:09 -0000 Issue 489

Topics (messages 5983 through 6002):

Expiry of session
        5983 by: Urmil Parikh

Re: Apache Modules
        5984 by: Matt Williams

Print variables coming from a form not controled by me...
        5985 by: Dream
        5987 by: Tom Mathews
        5991 by: Michael Rudel
        5992 by: Dream

Re: ASP to PHP automatic convertion
        5986 by: Mangiola Nunzio         Datavia

NSAPI, Win2K and Oracle
        5988 by: Norbert Falkenberg

Re: Can't connect to Oracle
        5989 by: Greig, Euan
        6000 by: Greig, Euan
        6001 by: Leon Santos Filho

Re: MD5
        5990 by: Erin's Fan Club

PHP does not read php.ini
        5993 by: Norbert Falkenberg
        5994 by: Michael Rudel
        5995 by: Norbert Falkenberg
        5997 by: Norbert Falkenberg

Cookies over different paths ...
        5996 by: phobo

XSL functions
        5998 by: Antonio Lopez

Problem with openssl_seal on NT
        5999 by: eXXos

COM error
        6002 by: Patrice Mora

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]


----------------------------------------------------------------------


Hi,

Anybody knows how to put a no activity timeout in sessions?

Regards,       | Linux
Urmil Parikh   | It is now safe to turn on your computer





> Have u tried apache.org?

Yes but thanks anyway

It seems that the .so files included will work under windoze.
Well they do on mine anyway :-)

Thanks again to all that replied.

M@




Any idea of how to get information from a form (not a form controlled by me,
through GET method, i.e. info coming with the URL, like this
http://www.xxx.com/xxx.cgi?result=1&age=23&name=john)  and print it through
php v.3?

I don't know how to get the info (coming from an outside form) and pass it
throught the php3 variables......

Thanks,

marc













Anything in the querystring can be translated as a php variable.

Say you have the string coming in as
...?result=1&age=23...
then in the called page/script, the querystring are already variables.
eg $result will have the value 1, $age will have the value 23...

Hope this is what you're after

Tom
Dream wrote:

> Any idea of how to get information from a form (not a form controlled by me,
> through GET method, i.e. info coming with the URL, like this
> http://www.xxx.com/xxx.cgi?result=1&age=23&name=john)  and print it through
> php v.3?
>
> I don't know how to get the info (coming from an outside form) and pass it
> throught the php3 variables......
>
> Thanks,
>
> marc
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




   // Dumps out all HTTP_GET_VARS:
   function DumpHttpGetVars()
   {
      global $HTTP_GET_VARS;

      if( $HTTP_GET_VARS )
      {
         reset ( $HTTP_GET_VARS );
         while ( list ( $key, $val ) = each ( $HTTP_GET_VARS ) )
         {
            echo "$key => $val<br>\n";
            if ( "array" == GetType( $val )  )
            {
               while ( list ( $key_child, $val_child ) = each
 $HTTP_GET_VARS ) )
               {
                  echo "|--> $key => $val<br>\n";
               }
            }
         }
      }
   }

So you just call the function 'DumpHttpGetVars()'
and all of them will be printed out.

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



-----Original Message-----
From: Tom Mathews [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 10:38 AM
Cc: PHP Windows lista
Subject: Re: [PHP-WIN] Print variables coming from a form not controled
by me...


Anything in the querystring can be translated as a php variable.

Say you have the string coming in as
...?result=1&age=23...
then in the called page/script, the querystring are already variables.
eg $result will have the value 1, $age will have the value 23...

Hope this is what you're after

Tom
Dream wrote:

> Any idea of how to get information from a form (not a form controlled by
me,
> through GET method, i.e. info coming with the URL, like this
> http://www.xxx.com/xxx.cgi?result=1&age=23&name=john)  and print it
through
> php v.3?
>
> I don't know how to get the info (coming from an outside form) and pass it
> throught the php3 variables......
>
> Thanks,
>
> marc
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]






Thanks....
But I did not know the code how to translate them...

I'll try the code in the message below...

marc


"Tom Mathews" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Anything in the querystring can be translated as a php variable.
>
> Say you have the string coming in as
> ...?result=1&age=23...
> then in the called page/script, the querystring are already variables.
> eg $result will have the value 1, $age will have the value 23...
>
> Hope this is what you're after
>
> Tom
> Dream wrote:
>
> > Any idea of how to get information from a form (not a form controlled by
me,
> > through GET method, i.e. info coming with the URL, like this
> > http://www.xxx.com/xxx.cgi?result=1&age=23&name=john)  and print it
through
> > php v.3?
> >
> > I don't know how to get the info (coming from an outside form) and pass
it
> > throught the php3 variables......
> >
> > Thanks,
> >
> > marc
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


----------------------------------------------------------------------------
----


> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]






Goto www.phpbuilder.com or www.phpwizard.net. Do
a search. I now it's there somewhere.

> ----------
> From:         Carlos Correa Goncalves[SMTP:[EMAIL PROTECTED]]
> Sent:         Thursday, March 08, 2001 6:41 PM
> To:   [EMAIL PROTECTED]
> Subject:      [PHP-WIN] ASP to PHP automatic convertion
> 
> Hi all,
> 
> Is there a program available to convert ASP to PHP and save me some days
> of
> work?
> 
> Bye
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 




Hi all,

I am running PHP as NSAPI plugin in iPlanet Webserver 4.1
No problem there.

But I want to use the php_oci8.dll to connect to Oracle.
When I use php outside the webserver, I just do dl("php_oci8.dll") and
it works.
Now the dl() cannot be used inside the Webserver.
I added extension=php_oci8.dll to the php.ini but still he complains
about undefined functions.
Anybody any ideas? It really looks as php does not read the php.ini at
all!

Any help greatly appreciated.

regards
Norbert





I've had exactly the same problem, so will be very interested in an answer too. I have 
spent (wasted) a lot of time trying to resolve it myself, using every variant on every 
variable I could imagine. I decided it might be a win95 problem, as the same setup 
works on win98.

-----Original Message-----
From: Herbert Groot Jebbink [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2001 16:48
To: [EMAIL PROTECTED]
Subject: Can't connect to Oracle


Hi,

I can't connect from a win95/Apache setup to a Oracle database

- The PHP version is 4.04pl1 (Nusphere)
- The location for tnsnames.ora is c:\orawin95\network\admin\tnsnames.ora
- De Oracle version is 7.3.4.0.0
- De SQL*NET client version is 2.3.4.0.0
- Using the SQL PLUS 3.3 client on this machine works fine:
- The Oracle module is active in php.ini

The test program:

<?php
  putenv('ORACLE_HOME=c:\orawin95');
  putenv("ORACLE_SID=WKDS");
  $conn = ora_plogon("hgj@wkds", "hgj");
?>

The result:

Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve
service name) in /www/data/ontwikkel/test/php/test3.php on line 5

Someone a idea whats wrong?

Greetings, Herbert

-- 
The Trans-Siberian Railroad Page: http://herbert.groot.jebbink.nl 


**************************************************************************
Any opinions expressed in this email are those of the individual and 
not necessarily the Company. This email and any files transmitted with 
it, including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company, are confidential and solely for 
the use of the intended recipient. If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be 
advised that you have received this email in error and that any use is 
strictly prohibited.

**************************************************************************




Thanks for this, Randall. I haven't previously tried upgrading to Oracle 8.1.6.0 
because my PC will not support this revision of Personal Oracle, which I have used a 
lot in the past. However, I could sacrifice personal oracle now, and just have SQLNet 
and SQLPlus on my machine, which I think it will handle.

Euan

-----Original Message-----
From: Randall Barber [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2001 16:35
To: Greig, Euan
Subject: Re: [PHP-WIN] RE: Can't connect to Oracle


Upgade your client to the 8.1.6.0 release.  This fixed all the problems I
myself was having on windows platforms.

BTW: It appears to be a PHP problem (or was in my case).  With the older
versions of the client I could connect to Oracle using ASP, ODBC (not from
PHP), and everything BUT PHP.  When I upgraded, the thing worked.

BTW:  I believe php_oci8.dll has an 8 in it for a reason.  Not sure though.

Hope that helps,
RDB

----- Original Message -----
From: "Greig, Euan" <[EMAIL PROTECTED]>
To: "Herbert Groot Jebbink" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 3:21 AM
Subject: [PHP-WIN] RE: Can't connect to Oracle


> I've had exactly the same problem, so will be very interested in an answer
too. I have spent (wasted) a lot of time trying to resolve it myself, using
every variant on every variable I could imagine. I decided it might be a
win95 problem, as the same setup works on win98.
>
> -----Original Message-----
> From: Herbert Groot Jebbink [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2001 16:48
> To: [EMAIL PROTECTED]
> Subject: Can't connect to Oracle
>
>
> Hi,
>
> I can't connect from a win95/Apache setup to a Oracle database
>
> - The PHP version is 4.04pl1 (Nusphere)
> - The location for tnsnames.ora is c:\orawin95\network\admin\tnsnames.ora
> - De Oracle version is 7.3.4.0.0
> - De SQL*NET client version is 2.3.4.0.0
> - Using the SQL PLUS 3.3 client on this machine works fine:
> - The Oracle module is active in php.ini
>
> The test program:
>
> <?php
>   putenv('ORACLE_HOME=c:\orawin95');
>   putenv("ORACLE_SID=WKDS");
>   $conn = ora_plogon("hgj@wkds", "hgj");
> ?>
>
> The result:
>
> Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve
> service name) in /www/data/ontwikkel/test/php/test3.php on line 5
>
> Someone a idea whats wrong?
>
> Greetings, Herbert
>
> --
> The Trans-Siberian Railroad Page: http://herbert.groot.jebbink.nl
>
>
> **************************************************************************
> Any opinions expressed in this email are those of the individual and
> not necessarily the Company. This email and any files transmitted with
> it, including replies and forwarded copies (which may contain alterations)
> subsequently transmitted from the Company, are confidential and solely for
> the use of the intended recipient. If you are not the intended recipient
> or the person responsible for delivering to the intended recipient, be
> advised that you have received this email in error and that any use is
> strictly prohibited.
>
> **************************************************************************
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


**************************************************************************
Any opinions expressed in this email are those of the individual and 
not necessarily the Company. This email and any files transmitted with 
it, including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company, are confidential and solely for 
the use of the intended recipient. If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be 
advised that you have received this email in error and that any use is 
strictly prohibited.

**************************************************************************




Hi!
I get this code here and it works very well. It was a Jean-Christophe
suggestion.
You can obtain TNS string from file TNSNAMES.ORA.
Good Luck!

Leon

<?php
putenv("ORACLE_SID=badm");
putenv("ORACLE_HOME=D:\ORANT");
$tns = "(DESCRIPTION = (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST =
bhz_oracle_1)(PORT = 1521)))  (CONNECT_DATA = (SID = badm) ) )";
$connect=OCIPLogon("user","password",$tns) or die("It's not possible to
connect");
$sql =  "select * from CentrosCusto";

$result = OCIParse($connect,$sql);
OCIExecute($result) or die("It's not possible to query");

echo("<TABLE>");
while(OCIFetch($result)) {
    $CC = OCIResult($result,1);
    $CCNome = OCIResult($result,2);
    echo('<TR><TD>' . $CC . '</TD><TD>' . $CCNome . '</TD></TR>');
}
echo("</TABLE>");
?>

----- Original Message -----
From: Herbert Groot Jebbink <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 1:48 PM
Subject: [PHP-WIN] Can't connect to Oracle


> Hi,
>
> I can't connect from a win95/Apache setup to a Oracle database
>
> - The PHP version is 4.04pl1 (Nusphere)
> - The location for tnsnames.ora is c:\orawin95\network\admin\tnsnames.ora
> - De Oracle version is 7.3.4.0.0
> - De SQL*NET client version is 2.3.4.0.0
> - Using the SQL PLUS 3.3 client on this machine works fine:
> - The Oracle module is active in php.ini
>
> The test program:
>
> <?php
>   putenv('ORACLE_HOME=c:\orawin95');
>   putenv("ORACLE_SID=WKDS");
>   $conn = ora_plogon("hgj@wkds", "hgj");
> ?>
>
> The result:
>
> Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve
> service name) in /www/data/ontwikkel/test/php/test3.php on line 5
>
> Someone a idea whats wrong?
>
> Greetings, Herbert
>
> --
> The Trans-Siberian Railroad Page: http://herbert.groot.jebbink.nl
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





Hi list and Ben:

> I have a string that I want to MD5 (No prizes for guessing its a 
> password), what I want to do is MD5 two strings (one supplied 
> by the user, and one by my server) and compare them. How can
> I do this?
<<snipped the rest>>

MD stands for message digest, in brief a fixed length hash based
upon the string hashed. It is a one way algorithm and the easiest
way to crack it is the same solution is what you are after, i.e.
string comparison. Lets take an example;
<?php
// Initialise variables
$my_stored_password=<a pre hashed md5 string>;
$the_users_password=<a password entered by the user>;

// md5 hash the users password
$md5_users_password=md5($the_users_password);

// do a hash comparison
if($md5_users_password == $my_stored_password):
    {
    print "It matches!";
    }
else:
    {
    print "Password comparison failed!";
    }
endif;
?>

Remember, any value hashed by md5 will provide the same result,
always.

Hope this helps you. If you need any more information, feel free to 
mail the list or me.

Regards Jerry.





No matter what, it never reads my php.ini
it is in the PATH, but wont read it.
Any ideas?

Regards,
Bert





the php.ini has to be in your windows\ directory.

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



-----Original Message-----
From: Norbert Falkenberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 11:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP does not read php.ini


No matter what, it never reads my php.ini
it is in the PATH, but wont read it.
Any ideas?

Regards,
Bert


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





it still will not read it.
It only does when I invoke php from the commandline.
Not when it is invoked by the webserver. I am very stuck there ;-(

Regards
Norbert

Michael Rudel wrote:

> the php.ini has to be in your windows\ directory.
>
> Greetinx,
>   Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
> _______________________________________________________________
>
> Suchtreffer AG
> Bleicherstraße 20
> D-78467 Konstanz
> Germany
> fon: +49-(0)7531-89207-17
> fax: +49-(0)7531-89207-13
> e-mail: mailto:[EMAIL PROTECTED]
> internet: http://www.suchtreffer.de
> _______________________________________________________________
>
> -----Original Message-----
> From: Norbert Falkenberg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 13, 2001 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP does not read php.ini
>
> No matter what, it never reads my php.ini
> it is in the PATH, but wont read it.
> Any ideas?
>
> Regards,
> Bert
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





No stop, you are right!
It does. Wow. Thanks that was an easy one. Looks like I am STUPID *g

regards,
Norbert

Michael Rudel wrote:

> the php.ini has to be in your windows\ directory.
>
> Greetinx,
>   Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
> _______________________________________________________________
>
> Suchtreffer AG
> Bleicherstraße 20
> D-78467 Konstanz
> Germany
> fon: +49-(0)7531-89207-17
> fax: +49-(0)7531-89207-13
> e-mail: mailto:[EMAIL PROTECTED]
> internet: http://www.suchtreffer.de
> _______________________________________________________________
>
> -----Original Message-----
> From: Norbert Falkenberg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 13, 2001 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP does not read php.ini
>
> No matter what, it never reads my php.ini
> it is in the PATH, but wont read it.
> Any ideas?
>
> Regards,
> Bert
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





If I set a cookie in
www.domain.com/login/authenticate.php ,
how do i access it in
www.domain.com/program/functions.php

for example??

it doesn't seem to be set in HTTP_POST_VARS when different folders are used.

I tried specifying the path/domain parameters in setcookie() ... in vain.

I dont want to put all the .php files into one folder, I have them nicely
seperated !

Siggy






I try this:

<?

$xmldata=".... una cadena con XML ....";
$xsldata=".... una cadena con XSL ....";

$handler=xslt_create();

$ok=xslt_process($xslData, $xmlData, $result);

xslt_free($handler);

?>

With PHP404pl1 + WinNT + PWS

When i try for first time with Netscape navigator, works all right.
But if i try to reload the same page, Netscape never stops of loading ...

¿Does anyone know why?

thankyou!!






===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590  - Málaga (Spain)
  
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es





Hi,

I'm stuck for 3 days now on the following
problem : whatever I try, i can't get
the openssl_seal function to work.

I use PHP 4.0.4 on a NT4 server, with IIS.
I also tried PHP 4.0.4 on a WIN2K server with IIS and Apache. Same result.

I use the following code :

----------------------------------
$data="test data";

$fp = fopen("test.cer", "r");
$cert = fread($fp, 8192);
fclose($fp);
$k = openssl_get_publickey($cert);
openssl_seal($data, $sealed, $ekeys, array($k));
openssl_free_key($k);

echo $sealed;
-----------------------------------

$k returns a correct id BUT
$sealed and $ekeys remains
ALWAYS blank/false, as if the seal function
didn't work at all.

I precise that with the same .cer, the
functions openssl_sign & verify are
working well.

So anyone has an idea of the problem ?

Thanks for your help,

eXXos.











I have PHP4, Windows 98 and apache , when i try to use something like This

$word=new COM("word.application") or die("Cannot start word for you");

I have the  "COM is not a class" message

Where is the "syntax error" ?

 Is there something to put in the php.ini or in the apache configuration
files ?? to activate DCOM


Thank youy for your help

[EMAIL PROTECTED]









Reply via email to