Hello!
I was wondering if it is possible to read files inside the server's data map with php?
Do you need to pick a specific hosting company to get access to this map?
Elephant47.
Solved Read files in server data folder with php
Discussion in 'Rust Development' started by Elephant47, Aug 4, 2016.
-
Are you trying to read the map file with PHP?
-
@sqroot, yes I do, but if you know a better way, feel free to tell me!

I just need to get data from a file in the server data folder to display on my website.
If it is possible with php that would be great since I have some experience using the language. -
Are you trying to read the server/identity/oxide/data folder or the map file? I'm still not quite sure about what you're trying to do.
-
He might be trying to read the player.db or whatever that one is called(that stores player data). Not sure either though
-
Sorry for the confusion, @sqroot and @DylanSMR
On my server a plugin is running that saves player data into a json file.
This file with all the player data is located in the following folder: \server\MyRustServer\oxide\data
I want to read the content of the player data file to my website with php. (if possible, otherwise another language is also OK)
Hope I explained it well this time. -
Yeah, this is more understandable.
If your host provides FTP, simply connect via FTP using PHP, download the file to your server and deserialize it using a JSON reader with PHP. -
Wulf Community Admin
If you mean the .data files, those are not human readable files and would need protobuf to read them. You can use Oxide's API via a plugin to export it to a JSON for use when they are changed too. -
@sqroot, thanks for clearing this up for me.
I am happy to know this is possible using FTP, now I only need to look for a host that provides it!
@Wulf, thanks for the input, I meant a file that is generated by a plugin that is running on my server that keeps track of player data.
so thankfully I don't have to bother decoding not human readable files
I appreciate the time you guys took to help me!
