Reply to Re: can't upload file

Your name:

Reply:


Posted by Good Man on 07/03/07 21:24

up2trouble <lynettesmith@gmail.com> wrote in 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

two clues to solving your problem:

1) "open_basedir restriction in effect" = you do not have permission to put
files outside the directory to which you've been given access.... so, its
telling you that you're trying to put the file somewhere its not allowed

2) "... in /home/lynettes/public_html/bainbridge/documents.php" suggests to
me that you should upload files to "/home/lynettes/public_html/" instead of
"/documents", because you KNOW you have access to that folder.

so...

$uploaddir = "/home/lynettes/public_html/";


want it in a folder called 'documents'? Then create it under
'public_html' and change $uploaddir as required.

[Back to original 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

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