RE: [PHP] Perl > PHP
| From: | Mark Charette | Date: | Sun, 05 Jan 2003 16:19:31 +0000 |
| Subject: | RE: [PHP] Perl > PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130323@lists.php.net to get a copy of this message | ||
The first line of the script had the magic incantation:
#!/usr/local/bin/perl
(or something very similar) which makes the leading 'perl' superfluous.
PHP scripts can be made into "self executing" scripts in a similar fashion
if the 1st line looks like:
#!/path/to/the/php/command/line/executable
This only applies to Unix and the executable bit must be set.
Mark C.
> -----Original Message-----
> From: Jurre Thiel [mailto:xs2jrr@xs4all.nl]
> Sorry, i didn't think of that. I still think exec('perl
> perl.pl'); does the
> job, not exec('perl.pl');
>>