PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Everah | Please use the proper bbCode tags when posting code in the forums.
It is not showing though... I have other java on that page and it is showing see this is how it is supposed to look like:
I understand what you mean, but both appear to be syntactically valid. Check for javascript errors on the latter.
PHP includes don't discard whitespace, so this shouldn't be a problem with the include function. You might be better off including the file with the script tag
aaronhall wrote:I understand what you mean, but both appear to be syntactically valid. Check for javascript errors on the latter.
PHP includes don't discard whitespace, so this shouldn't be a problem with the include function. You might be better off including the file with the script tag
If you do this, make sure to remove any script tags from the file being included
Ok, so all I do is add <script type="text/javascript" src="thefile.js"></script> to my php file that the include is on? Heres a question... do I put that in the head or body?
Also I am not 100% sure in what you mean when you say " make sure to remove any script tags from the file being included"... can you please elaborate more on this?