[thelist] PHP/Perl: How do they talk?

Mike King mike.king at redroom.co.uk
Fri Jul 27 04:18:48 CDT 2001


Tammy,

Seems like a convoluted thing to do? You could make it simpler just by 
letting the PHP script send the browser to the Perl script and then the 
Perl script can send the browser to whichever page is right (ie. Error.php 
or Success.php or even result.php?true=1)

Cheers
mk

At 10:03 27/07/2001, Tammy Rudotski wrote...
>Here's an interesting one (imho).
>
>Are their any geniuses out there that know how to get the following 
>procedure working:
>1. A PHP calls a Perl script, and sends a function call to it (e.g. 
>CreateUserAccount( "user", "password" ).
>2. The Perl script contains the CreateUserAccount function. It performs 
>the function (i.e. creates the user account in a database). If the 
>function is completed successfully, it returns True, else it returns 
>False. The result is returned to the PHP script.
>3. The PHP script informs the user that the account was successfully 
>completed if True was returned. If False was returned, then it redisplays 
>the form (with an explanation as to why the request failed).

--
http://www.redroom.co.uk
t. 07971 292 999
e. mike.king at redroom.co.uk





More information about the thelist mailing list