Dear all,
I have a basic script for file sharing and it works well on my computer, but I want to introduce it to a network. At this stage, it can only access files in it’s root folder, which I am happy with, but I want to know if there is a way to make it access other people’s nominated folders without them having to host the script from the file that they want to share from. This is the code:
<html>
<body>
<?php
if (!($f=fopen(“$_POST[filename]”,”r”)))
exit(“Unable to open file.”);
while (!feof($f))
{
$x=fgetc($f);
echo $x;
}
fclose($f);
?>
</body>
</html>
NB:There is no problem with the script, but i want to know if there is an easier way for new users to join than having to host their own PHP page, as none of the computers on the network support PHP.
PS-Is there a free domain site that supports PHP?