PHP: Network problem; can't read files on the other computer
Posted: Wed Sep 21, 2005 5:51 pm
Hi everybody!
The are two PC's connected with a switch:
- 1. win2000 server
- 2. win98
I've installed PHP on the win2000 and I want to
read a file witch is on the win98 PC's harddisk.
For example: check the size of a file.
I've tried these codes:
<?php
$filename = '///COMPUTER_WIN98/data//text.txt';
echo filesize($filename);
?>
it echoes nothing, and if I map "data" directory of
the win98 machine, for example for "q:\", neither:
<?php
$filename = 'q:/text.txt';
echo filesize($filename);
?>
What is the sollution? Please, someone help!!
thx.
L.
The are two PC's connected with a switch:
- 1. win2000 server
- 2. win98
I've installed PHP on the win2000 and I want to
read a file witch is on the win98 PC's harddisk.
For example: check the size of a file.
I've tried these codes:
<?php
$filename = '///COMPUTER_WIN98/data//text.txt';
echo filesize($filename);
?>
it echoes nothing, and if I map "data" directory of
the win98 machine, for example for "q:\", neither:
<?php
$filename = 'q:/text.txt';
echo filesize($filename);
?>
What is the sollution? Please, someone help!!
thx.
L.