mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-02 23:03:59 +01:00
Look to PHP_SELF and not FILE
Will get the correct path for this location both online and locally
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user