View Single Post
  #2 (permalink)  
Old 05-22-06, 03:10 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
It should work in both. PHP files are locally the same than HTML files. Only the extension changes. What you could try is to put the script in an extern .js page, and include it like this in your PHP page.

Code:
<script type="text/javascript" src="script.js"></script>
Reply With Quote