I've no expertise with php, but some suggestions.

Connecting to USB (and probably serial) as webuser is probably forbidden.

I'd suggest using owserver will get around this. (Also more efficient, since you don't have to reinitialize each time).

Start up owserver (possibly as root).
Test connection with owfs or owhttpd
Use owphp to connect to owserver.

Paul

On 4/9/06, Wizard <[EMAIL PROTECTED]> wrote:
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 = "">$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