Re: Using SSI within PHP
by "Doug Dossett" <hwg(at)igotnothin.com>
|
| Date: |
Wed, 9 May 2001 08:35:02 -0700 |
| To: |
Rob Atkinson <robatkinson(at)nucleus.com>, hwg-techniques-digest(at)mail.hwg.org |
| In-Reply-To: |
nucleus |
| |
todo: View
Thread,
Original
|
|
Hello,
This works for me:
<? passthru("perl /usr/wwwroot/bin/nav.cgi index.php"); ?>
In my case, I'm passing it a variable as well, but you should be
able to drop that part and get your results.
Regards,
Doug Dossett
MiscSites.com
On 9 May 2001, at 8:00, Rob Atkinson wrote:
> Appreciate the help everyone and this is where I'm at so far:
>
> The php files I have, work just fine -- until I try to insert the SSI
> call.
>
> Tamara had suggested using:
>
> AddType application/x-httpd-php .htm .html
>
> which is no good. Although I never setup any MIME type myself, it
> appears that adding it in, turns the php files into a download. PHP
> 4.03 is installed on the Server so the MIME for PHP should not be
> required. I think it has something to do with the fact I am calling a
> PERL script.
>
>
> Using "include" in any; way, shape, or form, produces a printout
> (on the PHP page) of the text, of the script.
>
> Using "virtual" allows the SSI call to work as it should, the
> script to work as it should, and the PHP page displays -- yet I
> "still" get a PHP error msg.
>
> Warning: Unable to include (the SSI call)
> - request execution failed
>
> Which makes no sense?
>
> It "was" able to include the SSI call and the request "was"
> executed, and if not for the Warning msg. -- everything would be
> fine!
>
> Something tells me that there is just no-way, a person can use
> PHP and SSI -- to call a PERL/CGI script. A text file or html
> file, yes, but not something that competes with the way PHP
> works.
>
> I dunno???
>
>
> Website Rob
> Helping people create a Potent Web Site
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.