You are here: Re: can't upload file « PHP Programming Language « IT news, forums, messages
Re: can't upload file

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...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация