I'm trying to get files from a network through a php page. I can open files from the internet with this code:
<?php
$url="http://www.whatever.com/dunno.php";
$result = implode('', file($url));
echo $result;
?>
and it displays the page. However, when i try to do in on my network with over 1000 pc's i get a permission denied on every single file while i have access to them when i get on the pc.
This is the code i'm using:
<?php
$url="\\\pcname\\folder\\file.txt";
$result = implode('', file($url));
echo $result;
?>
Does anyone have an idea to help me further?
thanks in advance