Hello, i have a file in main folder ( same folder of bin file, pocketmine file, plugins ), and i want to move it to bin folder, so what link of destination need i use. i tried : ./bin/ but didnt work, thanks in advance
i dont know where is the link start?, from the main folder ( same folder of pocketmine.phar) or in the plugins folder?. if i want to move a file abc.dll in plugins folder to bin/php/ext/. what is the code i need?. move_uploaded_file('abc','./bin/php/ext)? thanks u very much
The path of the main folder is... PHP: $main_folder = $server->getDataPath(); From there, you can move a file to the bin folder... PHP: $target = $main_folder . "bin/php/ext/"; Btw, what are you trying to do by moving a .dll in there?
I think he's trying to put an extension without recompiling, from his past posts he might be trying to put FTP extension in the PHP bin
I tried but it didnt work. I have a abc.txt in plugins folder (plugins/abc.txt ). Then i use PHP: move_uploaded_file('./plugins/abc.txt' , './bin/'); (bin folder instead) and it return false i tried like you do too but it the same because ./ is same as $server->getDataPath().
(This is KielKing on another account) Quote from PHP.net This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination. If filename is not a valid upload file, then no action will occur, andmove_uploaded_file() will return FALSE. <--- you have this issue