| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) | |
|
Registered User
Fresh Surpasser
Joined in Oct 2004
28 posts
Gave thanks: 0
Thanked 0 times
|
Permission denied error.
I need help getting this script to work, currently it's giving a permission denied error on line ten. There are other errors but this one needs to be fixed first. Does anyone know why it's not working?
Quote:
PHP Code:
|
|
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Sep 2004
209 posts
Gave thanks: 0
Thanked 0 times
|
Try changing this line:
mkdir($ziptodir, 0774); to: mkdir($ziptodir, 0777); and see if it works.
__________________
Pass14 www.tqwebservices.com www.autoappraisalsunlimited.com www.clevelandlayne.com Pass18 www.estateagency.com.au Some people drink deeply from the fountain of knowledge. Others just gargle. |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
|
No, you need to chmod() the HOST directory to 0777, mkdir(), then chmod() back.
PHP Code:
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|