Hello
I don't have knowledge about php coding. I am trying to understand the part of php program. its related to ip address. can anyone tell me whats happening in program. what's the use of this part?
I don't have knowledge about php coding. I am trying to understand the part of php program. its related to ip address. can anyone tell me whats happening in program. what's the use of this part?
C:
<?php
error_reporting(0);
if ($_POST) {
$file_path = "//192.158.0.100/PRASHANT/Device control/device_log.txt";
$myfile = fopen($file_path, "w") or die("Unable to open file!");
$txt = $_POST['device']." ".$_POST['switch']."\n";
fwrite($myfile, $txt);
fclose($myfile);
}
?>