close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can't change Write Permissions with GoDaddy

Thread began 12/12/2011 11:44 am by readyross433225 | Last modified 12/12/2011 9:37 pm by Matthew Meling | 7555 views | 4 replies |

readyross433225

Can't change Write Permissions with GoDaddy

Uploaded PS4 through Dreamweaver to my GoDaddy server. I can't seem to find where I can change the permissions to 777? I tried to change it through Dreamweaver but it just says that it cant grant the change bc of the server. Any ideas on this? thanks

Sign in to reply to this post

DougBBeta Tester

I use GoDaddy aswell,

if you go into the FTP file manager on GoDaddy, you can manually change permissions.

However if you want to make changes dynamically in PHP.. I use a small routine listed below that works wonders. I do this in Powerstore during my uploads. Just change the parameters in the function to set permissions if you need a PHP solution otherwise do it manually with the FTP manager

Hope this helps...

chmod_R($path1, 0666,0777);


<?php
// provide security for files/paths
function chmod_R($path, $filemode, $dirmode) {
if (is_dir($path) ) {
if (!chmod($path, $dirmode)) {
$dirmode_str=decoct($dirmode);
print "Failed applying filemode '$dirmode_str' on directory '$path'\n";
print " `-> the directory '$path' will be skipped from recursive chmod\n";
return;
}
$dh = opendir($path);
while (($file = readdir($dh)) !== false) {
if($file != '.' && $file != '..') { // skip self and parent pointing directories
$fullpath = $path.'/'.$file;
chmod_R($fullpath, $filemode,$dirmode);
}
}
closedir($dh);
} else {
if (is_link($path)) {
print "link '$path' is skipped\n";
return;
}
if (!chmod($path, $filemode)) {
$filemode_str=decoct($filemode);
print "Failed applying filemode '$filemode_str' on file '$path'\n";
return;
}
}
}
?>

Sign in to reply to this post

Matthew Meling

Thanks for the assist Doug!

Readyross, like Doug said, you should easily be able to change the permissions through FTP. If you need more help with the process, please let us know.

Sign in to reply to this post

readyross433225

thanks!!!

Thanks, it worked great

Sign in to reply to this post

Matthew Meling

No problem. Any more questions, please don't hesitate to ask.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...