PHP in PErl

From: Gary (reachus_at_netlink.info)
Date: 08/25/04


Date: Tue, 24 Aug 2004 23:21:50 -0400

I am calling a perl script that writes a WEB page - Plain and simple except
that the perl script also writes out some PHP processing. All works fine
when I just create an html file of the program but when I use perl to write
it the php tags are ignored ?

I have the apache Xbithack on so php is parsed for all html files and the
perl script says it is an html file as below.

This code is called from a WEB page

#!/usr/local/bin/perl
print <<END;
Content-type: text/html

<?php
SCRIPT etc etc
?>
END

PHP tags are just printed on the screen.

Any pointers.
Gary



Relevant Pages

  • Re: PHP in a Perl Script
    ... > except that the perl script also writes out some PHP processing. ... I assume this is on Apache ... ...
    (comp.lang.perl.misc)
  • PHP in a Perl Script
    ... I am calling a perl script that writes a WEB page - Plain and simple except ... that the perl script also writes out some PHP processing. ... perl script says it is an html file as below. ... PHP tags are just printed on the screen. ...
    (comp.lang.perl.misc)
  • Re: [PHP] variables from perl cgi into a php
    ... that wrote the perl script is unavailable to work it in the perl script due ... mysql database. ... Sounds like you want your Perl application to call a bit of PHP and pass PHP ... Then the PHP script can grab the URL variables and save them in the ...
    (php.general)
  • Re: PHP in a Perl Script
    ... > except that the perl script also writes out some PHP processing. ... > works fine when I just create an html file of the program but when I ...
    (comp.lang.perl.misc)
  • RE: [PHP] Images being uploaded in ASCII format
    ... I'll look forward to the perl script to see if it sheds any more light ... Images being uploaded in ASCII format ... Unfortunately PHP does not allow access to raw POST ... Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. ...
    (php.general)