Guest Posted February 22, 2003 Share Posted February 22, 2003 Hi I have tried to change the title of "osCommerce" in the top left of Internet Explorer using the define languages feature in Admin, at first I had the pink line saying I need to CHMOD so the file could be writtin too, so I did this, the pink line went away, I changed "osCommerce" to something else, then hit save - all seemed to go ok! the title did not change in my store, so I opened "english.php" agian and scrolled down to title part and it was back to "osCommerce" , its only english.php, german.php, espanol.php that cant be altered successfully - rest of define languages files get changes straight away. I feel it could be a CHMOD setting, but what number should it be? I have allowed the file read and write properties, for Owner, General and Browsers so I'm a bit stumped now. I could not find any other information about this here, and also got results of around 8000 in my search...LOL I now I can always download the file and make changes manually to the code - but what would be the point of haveing and Admin Area Link to comment Share on other sites More sharing options...
loxly Posted February 22, 2003 Share Posted February 22, 2003 The file should be set to 666, or Read Write Read Write Read Write [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
erisen Posted February 22, 2003 Share Posted February 22, 2003 Hi I have tried to change the title of "osCommerce" in the top left of Internet Explorer using the define languages feature in Admin, at first I had the pink line saying I need to CHMOD so the file could be writtin too, so I did this, the pink line went away, I changed "osCommerce" to something else, then hit save - all seemed to go ok! the title did not change in my store, so I opened "english.php" agian and scrolled down to title part and it was back to "osCommerce" , its only english.php, german.php, espanol.php that cant be altered successfully - rest of define languages files get changes straight away. I feel it could be a CHMOD setting, but what number should it be? I have allowed the file read and write properties, for Owner, General and Browsers so I'm a bit stumped now. I could not find any other information about this here, and also got results of around 8000 in my search...LOL I now I can always download the file and make changes manually to the code - but what would be the point of haveing and Admin Area Hello Friend, Here is my 2 cents on your problem. I am not a big fan of leaving my files in a permission level that are writeable to the world. However, the admin tool required the files to be in the mode so they can write. If I am not mistaking, apache runs as nobody............... So, I have developed a simple program, that will change the mode in a given directoy * you have to replace the /home/../.././ with your path. #!/usr/bin/php -q <?php echo "<PRE>"; if ($dir = @opendir("/home/...../includes/languages/english")) { while (($file = readdir($dir)) !== false) { echo "$filen"; $file = "/home/......../includes/languages/english/".$file; chmod ("$file", 0666); // or 0777 instead of 0666 } closedir($dir); ?> Ok, one thing though, you have to run this as the root. Most likely you won't have the root access, so you can run this add this to your cron tab. Most hosting companies give you access to cron via gui. When you are done modifying your files, run the script back, and put 0755 instead of 0666 .. Hope this helps. GALATASARAY RULES! ultrAslan - ultrAslan - ultrAslan Link to comment Share on other sites More sharing options...
loxly Posted February 22, 2003 Share Posted February 22, 2003 I set it manually before editing and change it back after :-) Your script sounds like a good idea. Debbie [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.