Re: Re: Call PHP script from MySQL
| From: | Sancar Saran | Date: | Tue, 19 Feb 2008 15:01:47 +0000 |
| Subject: | Re: Re: Call PHP script from MySQL | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269622@lists.php.net to get a copy of this message | ||
Hello,
you may call external php script someting like that
$val = asp's_fopen(http://www.example.com/calculate.php?var=password_field);
<php // calculate.php
echo correct hash (vpopmail);
?>
Regards
Sancar
On Wednesday 20 February 2008 01:58:48 Mário Gamito wrote:
> Hi Nathan,
>
> >> Is it possible to call from within MySQL an external PHP script ?
> >> I've read "MySQL Stored Procedure Programming" from O'Reilly but
> >> found nothing :(
> >
> > I'd really like to see an example of why you need this functionality,
> > if that'd be okay. Not to judge, just to learn :)
>
> I'm inserting values in a Linux/MySQL table from an ASP.NET/C# page.
> I need to insert the password field with the correct hash (vpopmail).
>
> So, after the first insert leaving the password field blank, I need to
> invoke a PHP script that calculates the hash and then insert it.
>
> Warm Regards,
> Mário Gamito