PHP problem

Discussion in 'PHP' started by RovingCalypso, May 18, 2007.

  1. #1
    I am unable to modify php stuff (wordpress, joomla etc) through their backend/control panel.

    Wordpress gives me this error.

    PHP Warning:
    "
    fopen(C:\Inetpub\wwwroot\wordpress/wp-content/themes/gridlock/style.css) [function.fopen]: failed to open stream: Permission denied in
    C:\Inetpub\wwwroot\wordpress\wp-admin\theme-editor.php on line 58 PHP Warning: fwrite(): supplied argument is not a valid stream resource in
    C:\Inetpub\wwwroot\wordpress\wp-admin\theme-editor.php on line 59 PHP Warning: fclose(): supplied argument is not a valid stream resource in
    C:\Inetpub\wwwroot\wordpress\wp-admin\theme-editor.php on line 60
    "

    I am guessing that I dont have the permission to modify PHP code from the browser but how can I fix this. This is on my pc (as a server).
     
    RovingCalypso, May 18, 2007 IP
  2. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #2
    You need to edit the permissions to allow the webuser to write to the files.

    So in your example, you would need to ensure style.css has permissions which allow writing.
     
    SilkySmooth, May 18, 2007 IP
  3. Mr D

    Mr D Peon

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can change permissions in your ftp program of in your control panel
     
    Mr D, May 18, 2007 IP
  4. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #4
    He is on a local machine.
     
    SilkySmooth, May 18, 2007 IP
  5. RovingCalypso

    RovingCalypso Well-Known Member

    Messages:
    2,467
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Well its not just the css of wordpress, its with every php software package (joomla etc).

    Any idea how to do it?

    Thanks
     
    RovingCalypso, May 18, 2007 IP