Results 1 to 5 of 5
  1. #1

    What is the java "before" statement?

    I am trying to have a java thing where it includes a php file like this:

    <script language="Javascript" src="end.php" type="text/javascript"></script>

    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!

  2. #2
    Join Date
    Oct 2003
    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"

  3. #3
    Join Date
    Dec 2002
    NY, NY
    Jetsam.. you are really annoying me lol
    i already taught you!
    didnt you read this post:

    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>
    //some javascript code here..
    [no PHP!!!]

  4. #4
    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>

  5. #5
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts