anyone know why i cant access my chips dir via php  from website?

<?php


function getTemp($chipid){
$chippath="chips/";
echo $chippath;
if(!($fp = fopen($chippath . $chipid . "/temperature","r"))) die ("Cannot open File");

$data = fread($fp,20);
$temp = trim($data);
fclose($fp);
return $temp;



}



?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<?php
   $temp = getTemp("10.1BFFB5000800");
   echo "The Temp for 10.1BFFB5000800 is: $temp";
?>
</body>
</html>
i get permission  denied


is that possably an apache error not haveing permission ? or owfs not allowing it ?


thanks


Mike


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to