Posted by pritaeas on 07/03/07 19:51
"up2trouble" <lynettesmith@gmail.com> wrote in message
news:1183491626.090935.251560@w5g2000hsg.googlegroups.com...
> error:
>
> Warning: chmod() [function.chmod]: open_basedir restriction in effect.
> File(/documentslynne3.gif) is not within the allowed path(s): (/home/
> lynettes:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/lynettes/
> public_html/bainbridge/documents.php on line 29
>
> code:
>
> <?PHP
> if(isset($_POST['upload_file']))
> {
> $uploaddir = "/documents";
> $user = $_POST['user'];
> $name = $_POST['name'];
> $category = $_POST['category'];
> $type = $_POST['type'];
> //$uploadedfile = $_POST['uploadedfile'];
>
Looks like
$uploaddir = "/documents";
needs to be changed to:
$uploaddir = "./documents";
Notice the dot...
[Back to original message]
|