I have a php file and I need to call some js functions from this file , these functions are located in external js file and also I should link to CSS file
what I should do to link to CSS and js files from inside my php file and my php file doesnt have the html or head or body tags just php code
I tried that:
Code: Select all
<?php
echo '<link rel="stylesheet" href="colorpicker/css/colorpicker.css" type="text/css" />';
echo '<script type="text/javascript" src="colorpicker/js/colorpicker.js"></script>';
?>please adviceError: missing ; before statement
Source File: http://mysite.com/wp-admin/colorpicker/ ... rpicker.js
Line: 1, Column: 81
Source Code:
<link rel="stylesheet" href="colorpicker/css/colorpicker.css" type="text/css" /><script type="text/javascript" src="colorpicker/js/colorpicker.js"></script><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht
Thanks