On 2/1/08, James Keeline <[EMAIL PROTECTED]> wrote: > If you run your Perl script from the command line, what does it return? If > the > output is the value you want to pass to PHP then your desire to use exec() or > a > similar function may work. I'd use shell_exec().
I think we'll use that... the script is already written. But for my purposes, It'll need to be copied to another name/file and 'slightly' altered... Basically it determines if a cookie exists, then de-crypts it using some long-winded security de-coding system (already designed).. & displays a login form etc.. , However All I need is some text displayed, to tell me if someones logged in or not... > Keep in mind that many systems put restrictions on where Perl scripts can be > placed to run in CGI mode. The permissions and ownership and location must be > just so for the script and its directory. It's one of the ~joys~ of working > with Perl/CGI. > Although your example does not include any arguments for the Perl scrips, > please keep security in mind when using any of the exec() or similar commands. The script won't use any command line input - It simply detects cookies & de-codes the info to determine if theyre logged in... -- G NZ community groups - [EMAIL PROTECTED] Freecycle Auckland :- http://groups.yahoo.com/group/AucklandFreecycle/
