Click to See Complete Forum and Search --> : File Sharing


Paddy Notemaker
11-19-2004, 10:55 PM
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?

ShrineDesigns
11-20-2004, 03:00 PM
PHP Network Functions (http://www.php.net/manual/en/ref.network.php)

finding a free php host is difficult

Jupac
11-20-2004, 09:48 PM
http://viperhosting.net/