chmod(): Operation not permitted
If you get a warning like chmod(): Operation not permitted
You can use the ftp_site() function to send a CHMOD command through.
CODE:
-
$ftp_user_name = 'username';
-
$ftp_user_pass = 'password';
-
$ftp_server = 'ftp.server.com';
-
-
$connect = ftp_connect($ftp_server);
-
-
if (!ftp_login($connect, $ftp_user_name, $ftp_user_pass)) die("Couldn't connect");
-
-
@ftp_site($connect, 'CHMOD 0777 /public_html/folder_to_chmod/');
-
-
... some process ... maybe upload ...
-
-
@ftp_site($connect, 'CHMOD 0755 /public_html/folder_to_chmod/');
-
ftp_close($connect);
Remember this is just example, improve it yourself.
Hope this helps someone. You might need this solution if you are on a shared server.

ooo..bisa juga tho...
gak pengen maen KotOR ta?
warior orochi lebih keren
Pasti error deh joy, single quotenya
Please fix it ASAP
hehehehehe
pantes warna na beda. Thanx ya