Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Alex1D

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Alex1D's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Перечень мер, если появилась ошибка «Не удалось открыть поток: отказано в доступе». 1. Узнайте код ошибки php. Для этого поместите этот код в начало файла php. ini_set('error_reporting', E_ALL);ini_set('display_errors', 1);ini_set('display_startup_errors', 1); 2. К папке должен быть доступ 777. Проверьте это. 3. Тег должен иметь атрибут enctype = "multipart/form-data" method = "post". <form enctype="multipart/form-data" method="post"> 4. Откройте и посмотрите массив $ _FILES на сервере. print_r ($_FILES); 5. Откройте и посмотрите массив $ _FILES на клиенте. file = document.getElementById("get_avatar").files[0];parts = file.name.split('.'); var a = file.size;var b = parts.pop();var c = file.type;alert(a+b+c); 6. Проверьте права пользователя и группы пользователей на каталог. cd /var/www/your_site/user ls -l Вот здесь подробно описано: http://profi.spage.me/php/check-file-input-on-php-and-jquery-why-error
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.