RE: [PHP] Generate PHP using PERL???

From: Date: Tue, 10 Jun 2003 17:11:50 +0000
Subject: RE: [PHP] Generate PHP using PERL???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150950@lists.php.net to get a copy of this message
Hi Todd, > -----Original Message----- > My question. Is it possible to dynamically generate a page using > a PERL script that will in turn be interpreted as PHP by the > server since I dont/wont have the option of ending the filename with PHP. > > My hope is that their is some directive that I can output at the > start that will invoke the PHP interpreter so that my output will > be run as a PHP script rather than just HTML. Its kind of ugly, but its possible to call a php script thru a system() function in Perl. You could write a php script to do the resize work for you, and call it like... system ('/usr/local/bin/php resize.php'); ... in Perl. I don't prefer doing these kinds of things, but I guess I don't personally have a better solution to your problem. Maybe someone else does? -Dan Joseph

« previous php.general (#150950) next »