// simply echo the path anywehre in php you need echo "<script src="script.js" type="text/javascript"></script>"