1jetsam
05-05-2004, 11:43 PM
I am trying to have a java thing where it includes a php file like this:
Start.html
<script language="Javascript" src="end.php" type="text/javascript"></script>
and
end.php
some php code, nothing wrong with the php code.
Well, my Firefox java console says "missing ; before statement"
So, I assume I have to have a javascript script to say that it has begun, or something, but I don't know. I would like this stuff to work!!!
Thanks for the help!
Rahde
05-06-2004, 03:26 PM
are you talking about java or javascript
in any case, I believe you are reading the error wrongly
you are missing a ;
read it like this, "you are missing a semi-colon, before your statement"
ilyash
05-06-2004, 06:37 PM
Jetsam.. you are really annoying me lol
i already taught you!
didnt you read this post: http://www.webhostingtalk.com/showthread.php?s=&threadid=267531
second of all.. why are you trying to use php as javascript code?
it should be used like this:
<script language="Javascript" src="end.js" type="text/javascript"></script>
end.js
//some javascript code here..
[no PHP!!!]
1jetsam
05-06-2004, 08:30 PM
This is for something totally different...this is a script for servers without php, so it can "contact" another sever, and run the script there...I'm just messing arround with php and java etc...
And if you do it that way, then it doesn't have php. I noticed there are different ways of doing this, but only the way I chose come up with NO error.
here is another way i could of done it...:
<script language="PHP" type="text/php"></script>
1jetsam
05-06-2004, 08:41 PM
Yes, but where do I put the semi-colon? I've tried at the begining line, a new beinging line, and all the lines, and I also tried putting "end.php" at the beginging to, (as a new line)