+ Reply to Thread
Results 1 to 4 of 4

Thread: writing permission

  1. #1
    subimal is offline x10Hosting Member subimal is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    5

    Exclamation writing permission

    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:

  2. #2
    Pingy's Avatar
    Pingy is offline x10Hosting Member Pingy is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    46

    Re: writing permission

    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 Code:
    $directory "#DIRECTORY#";
    $dir_hand opendir($directory);
    while ((
    $file readdir($dir_hand)) !== false)
     {
    chmod($directory '/' $file0766);
     } 
    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...

  3. #3
    subimal is offline x10Hosting Member subimal is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    5

    Cool Re: writing permission

    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

  4. #4
    Pingy's Avatar
    Pingy is offline x10Hosting Member Pingy is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    46

    Re: writing permission

    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.

+ Reply to Thread

Similar Threads

  1. Professional Content / SEO Writing Services
    By LogosArea in forum The Marketplace
    Replies: 0
    Last Post: 08-04-2007, 03:13 AM
  2. Permission denied?
    By roach6390 in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 11-14-2006, 06:37 PM
  3. Problem writing to a file (php)
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 06-06-2006, 02:22 PM
  4. Writing / Translating php tutorials.
    By flapietoetoe in forum The Marketplace
    Replies: 2
    Last Post: 04-02-2006, 04:08 PM
  5. Permission Denied?
    By dragoneye_xp in forum Free Hosting
    Replies: 0
    Last Post: 02-23-2006, 12:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers