[PHP] Generate PHP using PERL???

2003-06-10 Thread Todd Snyder
I hope this hasn't been asked too many times before because I've done an archive 
search and cant find the answer to my question.

I presently have much of my web site (www.home-fires.com) dynamically generated using 
PERL scripts.  I have a need to reduce image
sizes and my host supports this functionality via PHP and imagemagick.  (They will not 
support this for PERL however even though its
available) .

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.

Thanks,
Todd Snyder
Code 6093, 812-854-1685
Electrochemical Power Systems


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-06-11 Thread Todd Snyder
>>Why bother going through a system call? If you have apache loading both
>>mod_php and mod_perl, you can call (include or whatever) through normal http
>>methods.

Joel, I was responding to your post.
My intent is to minimize rewrite of my existing code.  I do wonder why my host wont 
load the perl modules though.  The company is
www.ipowerweb.com

Anyway, the suggestion to make a system call looks like my best route for doing this.
I also will take a fresh look at my code to see if I can divide it up better to make 
use of PHP for the image prior to running my
perl script.

Thanks,
Todd Snyder






- Original Message - 
From: "Joel Rees" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 11:36 PM
Subject: Re: [PHP] Generate PHP using PERL???


> > Well, I'm a little light on techniqueso bare with me...
> > I've got pages that are dynamically created via a perl program.
>
> Already? That was fast. ;-)
>
> > The final
> > HTTP output depends upon input to the perl script.
> >
> > I would like the output of this script to be interpreted as a .PHP page so
> > that I can take advantage of PHP functionality within that page.
>
> You're planning on piping perl into php? That sounds like fun.
>
> > Since I dont know what my page will look like prior to running the perl
> > script with its various inputs, I dont think I can do what your suggesting.
>
> Wish I knew which post you were replying to here, because I can't tell
> what was suggested, much less speculate much on why it doesn't look like
> it will work.
>
> > ...
>
> Anyway, if I wanted to be able to use some graphics libraries that my
> hosting company made available for php but not for perl, I'd do the
> graphics manipulations on php pages and be done with it.
>
> (It seems odd to me that your hosting company doesn't want to load the
> perl modules. That might have me wanting to drop the hosting company and
> fire up an openbsd box to host my own.)
>
> -- 
> Joel Rees <[EMAIL PROTECTED]>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-06-11 Thread Todd Snyder
Below was their reply to me when requesting info about the imagemagick perl module

>>Thank you for contacting iPowerweb technical support.
>>
>>We do have image magic for PHP, but the one for Perl we do not have and cannot 
>>install. You >>may or may not be able to shrink
images. Contact the creators of ImageMagick for additional >>assistance.

- Original Message - 
From: "Joel Rees" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 11:36 PM
Subject: Re: [PHP] Generate PHP using PERL???

> (It seems odd to me that your hosting company doesn't want to load the
> perl modules. That might have me wanting to drop the hosting company and
> fire up an openbsd box to host my own.)
>
> -- 
> Joel Rees <[EMAIL PROTECTED]>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php