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
12 views



Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

...