<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=OpenIDUser71</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=OpenIDUser71"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/OpenIDUser71"/>
	<updated>2026-05-09T00:42:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Filepath&amp;diff=42858</id>
		<title>Filepath</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Filepath&amp;diff=42858"/>
		<updated>2014-11-15T20:43:56Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser71: Changed xmlOpenFile &amp;gt; xmlLoadFile&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A [[filepath]] is a path that leads up to a file.  These are relative to the root directory of the resource it is being called from. &lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|It is also possible to use special filepaths in order to reference files from other resources.  This can be done with the following syntax&lt;br /&gt;
 :&amp;lt;resourceName&amp;gt;/file.ext&lt;br /&gt;
&lt;br /&gt;
So, for example&lt;br /&gt;
 xmlLoadFile ( &amp;quot;:helpmanager/help.xml&amp;quot; )&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Note: Server side filepaths which refer to resources will work correctly even if the other resource is not running. However&lt;br /&gt;
client side filepaths require the target resource to be running.&lt;br /&gt;
&lt;br /&gt;
=== Client file security ===&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
To protect a client file from being read by another server, prepend the filepath with @ when the file is created:&lt;br /&gt;
 xmlCreateFile ( &amp;quot;@:myresource/someinfo.xml&amp;quot; )&lt;br /&gt;
 fileCreate ( &amp;quot;@listofthings.txt&amp;quot; )&lt;br /&gt;
To read a private file, @ must also be prepended when the file is reopened:&lt;br /&gt;
 xmlLoadFile ( &amp;quot;@:myresource/someinfo.xml&amp;quot; )&lt;br /&gt;
 fileOpen ( &amp;quot;@listofthings.txt&amp;quot; )&lt;br /&gt;
Notes:&lt;br /&gt;
* The filepath without @ is read/writeable by all servers.&lt;br /&gt;
* The public and all the private versions of a particular filepath can exist at the same time. Which one is accessed depends upon the usage of @ and the server that is currently connected.&lt;br /&gt;
* The server file &amp;quot;mods/deathmatch/server-id.keys&amp;quot; is used for private file security. Keep a copy of it in a safe place!&lt;br /&gt;
}}&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser71</name></author>
	</entry>
</feed>