PDA

View Full Version : php include?


ruserious
06-26-06, 04:28 AM
Hello,
can anybody tell me if I can put this include on my MM5 pages?

This is what the instructions read.

include frames.php in any *.php page on your web site

include("$DOCUMENT_ROOT/ frames.php");
$img_url = "skippy.gif";
$width = 100;
$height = 150;
$tpl = "ice_blue";
echo picture_frame($img_url, $width, $height, $tpl);

Thanks for any ideas.

Vic - WolfPaw Computers
06-26-06, 04:35 AM
No, becaise the Empresa engine will not parse PHP.

It also will not understand $DOCUMENT_ROOT

You can do that in a php page, not in a MIVAScript application.

ruserious
06-26-06, 04:53 AM
rats.
what about with on of the external file modules? I saw them available at miva central.
thanks for the info

Vic - WolfPaw Computers
06-26-06, 04:59 AM
Again, the Empresa engine will not parse PHP itself.

You could possibly pull it into an IFRAME.

jason - jmh web services
06-26-06, 05:11 PM
rats.
what about with on of the external file modules? I saw them available at miva central.
thanks for the info

External File Pro (http://www.jmhonline.net/miva-modules/external+file+v5) and Toolkit (http://www.emporiumplus.com/merchant2/merchant.mvc?Screen=PROD&Store_Code=wcw&Product_Code=1AA00223&Affiliate=jasonh) can call php "files".

Jason

ruserious
06-26-06, 05:55 PM
Thanks very much!