I have a problem with pathing my files to each other. are all directory pathing format the same? because in external links Ex: <script type="text/javascript" src="file_js/friendList.js"></script> is not the same with <img src="../FriendsList/image/defaultboysmall.png" /> but both code works. ex: ../folder/file.php or folder/file.php.
Example:
$.getJSON('/data_php/getFriends.php', function(data) {
$.getJSON('../data_php/getFriends.php', function(data) {
$.getJSON('data_php/getFriends.php', function(data) {
this line codes here doesn’t work for me, I don’t know why it acts this way. Please help, I’m no good with Directory Paths.
Thank you.
getJSONand itsajaxilk are based on urls, not the file system. You need to be using an appropriate path relative to the document root of the website.