Actually, you're trying to call the PHP script by itself so the real
problem is "How do I get PHP running?". To that end, I would check out
http://www.zend.com/products/zend_core/zend_for_i5_os.
Matt
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of jlowary@xxxxxxxxxxxxx
Sent: Thursday, August 30, 2007 5:39 PM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Mixing Net.Data and PHP
Matt,
Correct on the first one! I'm trying to get the Net.Data to execute my
PHP script. When they click on an image then I am calling my PHP.
(sample
below)
...
<IMG src="$(imgPath)btn_larger_view.gif" align="baseline" border=0
name=""></A>
<A href="$(templateLink)/HelloWorld.php">
...
the $(xxx) are vendor supplied functions to give me access to these item
(directory wise). What I'm getting is:
<?php
require_once("/dompdf-0.5.1/dompdf_config.inc.php");
$html =
''
Hello World!
'
''
$dompdf = new DOMPDF();
$dompdf->;load_html($html);
$dompdf->;render();
$dompdf->;stream("hello_world.pdf");
?>
It doesn't appear to be processing the PHP. So if I did this as an
SSI,
should that remedy the situation?
Or I'm I missing something else, since it's finding my PHP script and
just
not processing it?
Sorry to be so dense on this!
Thanks for your help!
Jim Lowary
System Analyst, Salton Inc.
(573) 447-5500
JAMES LOWARY/MISTM/TMASTER/SALTON
08/30/2007 03:41 PM
To
web400@xxxxxxxxxxxx
cc
Subject
Mixing Net.Data and PHP
Jim,
Are you trying to make the Net.Data page execute the PHP script? If so,
you need to make sure server side includes are set up. To do this, you
need to make sure the following is in httpd.conf:
Options +Includes
AddOutputFilter INCLUDES .pgm
Once you restart the HTTP server, add an exec SSI include to your macro
like this:
<!--#exec cgi="/path/to/php_script" -->
If, on the other hand, you're trying to make the PHP page call the
Net.Data to make a PDF out of it, this will not help.
Matt Inc.
(573) 447-5500
As an Amazon Associate we earn from qualifying purchases.