Organizational Research By

Surprising Reserch Topic

getcwd and file string leads to file protocol error using -'javascript,php,html,file'


getcwd and file string leads to file protocol error  using -'javascript,php,html,file'

I want to load a javascript file from an absolute path in php but I keep getting an error called "Unable to load local resource".

I have an absolute path string like this

<script type="text/javascript" src="<?php echo getcwd(); ?>/js/jquery.js"></script>

And get this as a result:


How can I fix and avoid this problem?
    
asked Sep 7, 2015 by rajesh
0 votes
6 views



Related Hot Questions



Government Jobs Opening


...