upload file on unix
Posted: Wed Oct 02, 2002 9:27 am
hi
I have a problem in unix!
I have a script on windows server.
this script upload a file from client to a folder on windows server.
this script worked successfully on windows server.
then I ftp this script on unix server successfully. but when I run this script the progrom get me warning.
server can not copy file into my folder on unix???????????
please help me .
the html file source is:
//-----------------//
<html>
.
.
.
<body>
<form method="post" action="copy.php" enctype="multipart/form-data">
file: <input type="file" name="f1">
<input type="submit">
</form>
.
.
.
//----------------//
and the php file source is:
//-----------------//
<?php
if(copy($f1,$f1_name))
echo "ok";
else
echo "no copy";
?>
//----------------//
and the server warning is:
//---------------//
Warning: open_basedir restriction in effect. File is in wrong directory in ........... basic/copy.php on line 1
//--------------//
thank
I have a problem in unix!
I have a script on windows server.
this script upload a file from client to a folder on windows server.
this script worked successfully on windows server.
then I ftp this script on unix server successfully. but when I run this script the progrom get me warning.
server can not copy file into my folder on unix???????????
please help me .
the html file source is:
//-----------------//
<html>
.
.
.
<body>
<form method="post" action="copy.php" enctype="multipart/form-data">
file: <input type="file" name="f1">
<input type="submit">
</form>
.
.
.
//----------------//
and the php file source is:
//-----------------//
<?php
if(copy($f1,$f1_name))
echo "ok";
else
echo "no copy";
?>
//----------------//
and the server warning is:
//---------------//
Warning: open_basedir restriction in effect. File is in wrong directory in ........... basic/copy.php on line 1
//--------------//
thank