writing permission

subimal

New Member
Messages
5
Reaction score
0
Points
0
Hallo again,
Sorry for posting the problem again as i couldn't solve it yet.
My web site http://subimal.pcriot.com/joomla is hosted in your esteemed server. I have installed joomla and virtuemart component there. The virtuemart configuration section and new product image section is unwritable. It will be very much helpful if you please make them writable to change the configuration and to add new product image.
I tried to do it myself by changing the permission in cpanel to 766 but it says "Operation is not permitted". Please help me
Awaiting your kind reply and thanking you

Subimal :dunno:
 

Pingy

New Member
Messages
46
Reaction score
0
Points
0
There is a quick and easy workaround provided by the power of the lovely language that is PHP, and I've included it below.

PHP:
$directory = "#DIRECTORY#";
$dir_hand = opendir($directory);
while (($file = readdir($dir_hand)) !== false)
 {
chmod($directory . '/' . $file, 0766);
 }

Just replace #DIRECTORY# with the name of the directory in question. Note, though, that this will change the permissions of every file in the specified folder to 766. I hope I've helped, but if you need a more specific and fine-tuned script, just let me know...
 

subimal

New Member
Messages
5
Reaction score
0
Points
0
Thanks for your kind reply. Please tell me in which php file i have to introduce this code. As i'm not very strong in php. Thanks

Subimal
 

Pingy

New Member
Messages
46
Reaction score
0
Points
0
Erm, you'd have to create a new file then execute it, actuall; it shouldn't be difficult at all. Simply create a new file (something along the lines of fix.php, but anything with the .php extension will do) then navigate to it in your browser and it should do its job.
 
Top