Do you know how to make a file readable in php. I get these eroors and I think its becasue i need to make the file readable?
I used the following command:
$ sudo cat > /var/www/PHPServer1.php
<?php phpinfo(); ?>
$ lynx
http://127.0.0.1/PHPServer1.php
and got the following errors:
Warning: Unknown (/UNIOFS/var/www/PHPServer1.php):failed to open stream. Permission denied in unknown line 0
Warning: (null)(): Failed opening '/UNIOFS/var/www/PHPServer1.php' for inclusion (include_path = '.:/usr/share/php : /usr/share/peak) in unknown on line 0
I do not have internet access on the computer that I am running linux on. Do I need to get that? Is it possible to access it from a computer with internet access. Also here is the code that I am using in the mean time:
<?
while (1);
//Attempt to read string from socket
//For now let's pretend it's been read successfully
//and is called "stuff"
$stuff = "1,2.2,3.245,.546";
if ($stuff != "") {
$array_of_stuff = explode(',', $stuff); //Now it's an array
//Display them:
print ($array_of_stuff[0]);
print ($array_of_stuff[1]);
print ($array_of_stuff[2]);
print ($array_of_stuff[3]);
$stuff = "";
}
?>