template permission

predy88

New Member
Messages
19
Reaction score
0
Points
0
hy ... i have joomla installed and i can't change my template ... it says is unwritable i tried to change the permisiion in cPannel but it says : operation not permited....:dunno: what can i do ?
my site is http://promedia.x10hosting.com
 
Last edited:

Pingy

New Member
Messages
46
Reaction score
0
Points
0
This problem seems to crop up in Jooma way too much. No worries, though, there is a simple PHP fix:

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

Simply create a new file with a .php extension, throw this code in there, replace #DIRECTORY# with the directory you'd like to fix and then navigate to it in your browser and everything should be fine...
 

Pingy

New Member
Messages
46
Reaction score
0
Points
0
Ack! My sincerest apologies. I should've displayed the code wrapped in <?php and ?> tags; give that a try...
 
Top