i am using include to include a chat page which uses java, problem is when i load the page it does not load the java at all but i have found that with incldue you need to include other stuff but do i need to somehow where the include code is include the java files?
include
how does the java code get put into a regular page?
and how have you implemented it into the .php page?
here is the acutal code
<html>
<head>
<title>IRCApplet</title>
</head>
<body>
<h1>Test page for IRCApplet Class</h1><hr>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab"><param name="nick" value="dtvweb">
<param name="alternatenick" value="digitaltvweb">
<param name="name" value="digitaltvuser">
<param name="host" value="irc.dejatoons.net">
<param name="gui" value="pixx"><param name="quitmessage" value="We love #digitaltv">
<param name="style:bitmapsmileys" value="true">
<param name="style:smiley1" value="img/sourire.gif">
<param name="style:smiley2" value=":-) img/sourire.gif">
<param name="style:smiley3" value=":-D img/content.gif">
<param name="style:smiley4" value=":d img/content.gif">
<param name="style:smiley5" value=":-O img/OH-2.gif">
<param name="style:smiley6" value=":o img/OH-1.gif">
<param name="style:smiley7" value=":-P img/langue.gif">
<param name="style:smiley8" value=":p img/langue.gif">
<param name="style:smiley9" value=";-) img/clin-oeuil.gif">
<param name="style:smiley10" value="img/clin-oeuil.gif">
<param name="style:smiley11" value=":-( img/triste.gif">
<param name="style:smiley12" value="img/triste.gif">
<param name="style:smiley13" value=":-| img/OH-3.gif">
<param name="style:smiley14" value="img/OH-3.gif">
<param name="style:smiley15" value="img/pleure.gif">
<param name="style:smiley16" value=":$ img/rouge.gif">
<param name="style:smiley17" value=":-$ img/rouge.gif">
<param name="style:smiley18" value="(H) img/cool.gif">
<param name="style:smiley19" value="(h) img/cool.gif">
<param name="style:smiley20" value=":-@ img/enerve1.gif">
<param name="style:smiley21" value=":@ img/enerve2.gif">
<param name="style:smiley22" value=":-S img/roll-eyes.gif">
<param name="style:smiley23" value=":s img/roll-eyes.gif">
<param name="style:backgroundimage" value="true">
<param name="style:backgroundimage1" value="all all 0 background.gif">
<param name="style:sourcefontrule1" value="all all Serif 12">
<param name="style:floatingasl" value="true"><param name="pixx:timestamp" value="true">
<param name="pixx:highlight" value="true">
<param name="pixx:highlightnick" value="true">
<param name="pixx:nickfield" value="true">
<param name="pixx:styleselector" value="true">
<param name="pixx:setfontonstyle" value="true"></applet>
<hr></body>
</html>
is your php page and the included file in a different directory? that'll create problems
stolzyboy wrote:is your php page and the included file in a different directory? that'll create problems
yeah the index.php where it is getting included to is not in the same directory
the chat page is in sub directory so the link to it is like /chat/index.php
but the index.php where it going to is where the chat folde ris
i assuming it will be hard to add it then?
no, but the java code will need to changed to reflect the directory, so like the first line will be something like:
<applet code="directoryname/IRCApplet.class" archive="directoryname/irc.jar,directoryname/pixx.jar" width=640 height=400>
i'm not fully sure on the archive stuff if that's directory specific, but just remember, when you include, the included file acts as if it is in the directory of the file it is being included into
stolzyboy wrote:no, but the java code will need to changed to reflect the directory, so like the first line will be something like:
<applet code="directoryname/IRCApplet.class" archive="directoryname/irc.jar,directoryname/pixx.jar" width=640 height=400>
i'm not fully sure on the archive stuff if that's directory specific, but just remember, when you include, the included file acts as if it is in the directory of the file it is being included into
unfortnally that didnt seem to work, would it maybe that the files have be made as part of the case? so for instances case 'chat': include 'chat/index.php'; would that maybe need to be like case 'chat': include 'chat/index.php, chat/IRCApplet.class, chat/irc.jar, chat/pixx.jar'; or something similer not sure if that would worl with multi file includes within one include
EDIT: no it sees that as one big file name, making it serpate strings never worked as well cause of the ,
Ok i have worked out that it will need to be included into case i think
but i cna not work out how to od it as i get error returning
this is what i have currently
case 'chat': include 'irc/index.php', include 'irc/irc.jar', include 'irc/IRCApplet.class', include 'irc/pixx.jar', include 'irc/irc.cab', include 'irc/securedirc.cab', include 'irc/pixx.cab'; but it does not like the , so is there any way to do multi file includes within one case?
if you are including them as separate files, you can just run the include statement multiple times
<?php
include "file1.php";
include "file2.php";
include "file3.php";
include "file4.php";
include "file5.php";
?>