I'd just do the crypt functions in ASP, that's going to probably be a
lot less nightmare than trying to blend the two.

Here's a page that seems to have some useful information on crypt and
md5 type functions for ASP:

http://www.aspin.com/home/components/security?pg=4&order=desc


As for sharing variables.. Good luck.  I guess you could save it out to
a cookie and read it back in to the other language, but I'm not sure
that you can share session data or anything like that.

There's ALWAYS a 'way'.. But you have to ask yourself it's easier or
more time efficient to bite the bullet and pick a language.

-TG

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 29, 2004 5:35 PM
> To: Gryffyn, Trevor
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Integration between ASP & PHP.
> Importance: High
> 
> 
> OK,
> my problem is to use the crypt function (like 
> md5(),sha1(),mcrypt(),crypt())
> of PHP language in an ASP script.
> For example:
> <%
>   First part of script in ASP language
> %>
> <?php
>   script PHP
> ?>
> <%
>  Second part of script in ASP language
> %>
> I don't know if this code is correct I don't try to use it, 
> but this is what
> I want to do.
> Finally I want to share variables between the two languages 
> (I hope!!).
> Best regards,
> Frank
> www.automationsoft.biz
> 
> ----- Original Message -----
> From: "Gryffyn, Trevor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 29, 2004 9:30 PM
> Subject: RE: [PHP] Integration between ASP & PHP.
> 
> 
> Define "integrate"?
> 
> Using both ASP and PHP within the same physical file/script like:
> 
> <?php
> Phpcodehere;
> ?>
> <html>
> <body>
> <%
> Aspcodehere
> %?
> </body>
> </html>
> 
> ??
> 
> ...or going from ASP pages to PHP pages?
> That is, "Default.asp" calls "menu.php" or something like that?
> 
> 
> In the first case, I'm not sure if it's possible since the web server
> passes the script to an interpreter based on what kinda of file it is.
> .ASP and .ASPX are going to get sent to an ASP interpreter 
> and .PHP, etc
> are going to get sent to a PHP interpreter.
> 
> Not sure if you can get it to do both in the same file without some
> tricky work.
> 
> Good luck though!  I'm curious to see if anyone knows of a 
> way, but I'm
> not sure I'd ever want to mix code like that.
> 
> -TG
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 29, 2004 3:19 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Integration between ASP & PHP.
> > Importance: High
> >
> >
> > Hi all,
> > is possible to integrate script in ASP with script in PHP?
> > How can I do this?
> > All helps are precious.
> > Best regards.
> >
> 
> --
> 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

Reply via email to