Jump to content

phtml


BrockW

Recommended Posts

I have an applet that I use for advertising on the front page of my site. I was wondering if I could take the applet and save it as applet.phtml and then call for it where ever I want it? The applet looks like:

<APPLET CODE="coolbanner.class" WIDTH="468" HEIGHT="60">

<PARAM NAME="img1" VALUE="Advertise/images/Lindatest.jpg">
<PARAM NAME="link1" VALUE="http://www.watercolor-online.com/storefront1/Lindas%20New%20Book.htm">
<PARAM NAME="img2" VALUE="Advertise/images/QuickMile.jpg">
<PARAM NAME="link2" VALUE="http://www.quickmile.com/index.html">

<PARAM NAME="speed" VALUE="3">
<PARAM NAME="delay" VALUE="10">

<PARAM NAME="useborder" VALUE="Y">
<PARAM NAME="bordercolor" VALUE="10">
<PARAM NAME="bordercolorred" VALUE="255">
<PARAM NAME="bordercolorgreen" VALUE="255">
<PARAM NAME="bordercolorblue" VALUE="255">
</APPLET>

I was going to call the applet with this:

<script language="php">
include($_SERVER['DOCUMENT_ROOT'] . "/PhpScripts/Applet.phtml");
</script>

Is this even possible? I am new to PHP. My son is the guru and I am trying to do this one without him.

Wont he be proud?

Thanks in advance.


Link to comment
Share on other sites

try:

[code]<?php
include($_SERVER['DOCUMENT_ROOT'] . "/PhpScripts/Applet.phtml");
?>
[/code]

It fails to load the applet for me (because i dont have coolbanner.class) so i cant be sure if it'l completely work but it deffinately loads applet.phtml properly.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.