Results 1 to 5 of 5
-
05-05-2004, 11:43 PM #1WHT Addict
- Join Date
- Feb 2004
- Posts
- 134
What is the java "before" statement?
I am trying to have a java thing where it includes a php file like this:
Start.html
Code:<script language="Javascript" src="end.php" type="text/javascript"></script>
end.php
Code:some php code, nothing wrong with the php code.
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!
-
05-06-2004, 03:26 PM #2WHT Addict
- Join Date
- Oct 2003
- Posts
- 115
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"
-
05-06-2004, 06:37 PM #3Web Hosting Master
- Join Date
- Dec 2002
- Location
- NY, NY
- Posts
- 3,974
Jetsam.. you are really annoying me lol
i already taught you!
didnt you read this post: http://www.webhostingtalk.com/showth...hreadid=267531
second of all.. why are you trying to use php as javascript code?
it should be used like this:
Code:<script language="Javascript" src="end.js" type="text/javascript"></script>
Code:end.js //some javascript code here.. [no PHP!!!]
webmaster A T 420th.com
What is my Itunes playing? Visit 420th.com/nowplaying.jsp to find out.
Ask the monkey: http://www.monkeyfaq.com
-
05-06-2004, 08:30 PM #4WHT Addict
- Join Date
- Feb 2004
- Posts
- 134
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...:
Code:<script language="PHP" type="text/php"></script>
-
05-06-2004, 08:41 PM #5WHT Addict
- Join Date
- Feb 2004
- Posts
- 134
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)