RE: Re: [PHP] exec() Error
| From: | Per Jessen | Date: | Thu, 26 Jun 2008 06:11:02 +0000 |
| Subject: | RE: Re: [PHP] exec() Error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275971@lists.php.net to get a copy of this message | ||
Boyd, Todd M. wrote:
>>
>> Well, "http://www.mysite.com/calculate.php" is
>> not an executable.
>> Try this instead:
>>
>> exec("php <path>/calculate.php");
>
> I still don't think this is how exec() should be used when executing
> remote PHP scripts via HTTP, since the web server is not going to give
> you the underlying code simply because you're calling the URL from PHP
> and not your web browser. User-Agent tags do not a secure connection
> make.
That's not what Alice asked for though. She did mention that a remote
call would be made somewhere, but her question was:
>Has anyone tried using exec() successfully in PHP to execute files from
>PHP or other programming languages? For example, C, Python, or Perl.
And that works just fine using exec().
/Per Jessen, Zürich