Look to PHP_SELF and not FILE

Will get the correct path for this location both online and locally
This commit is contained in:
Matt Pass
2013-03-08 13:32:58 +00:00
parent cd295e2315
commit 80d64ae4e0

View File

@@ -37,7 +37,7 @@ test = {
o.p = ICEcoder.openFiles[0];
t++;
},10);
result = ICEcoder.openFile('<?php echo str_replace("\\","/",dirname(__FILE__))."/test-file1.txt";?>');
result = ICEcoder.openFile('<?php echo str_replace("\\","/",dirname($_SERVER['PHP_SELF']))."/test-file1.txt";?>');
},
updateDoc: function() {