Whats Wrong With this

Discussion in 'PHP' started by rhys_davies, Jan 27, 2008.

  1. #1
    If you visit

    http://tvlinksdb.com/pageWriters/index.php?write=true


    Its spitting out an error, can anyone tell me how to fix this please?



    The error mention lines 31 in a file, this is line 31
    $fp = fopen($_SERVER['DOCUMENT_ROOT']."/movies/" . $title , "w+") or die("Couldn't open file");
     
    rhys_davies, Jan 27, 2008 IP
  2. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you try changing the permission od this file? :

    /home/maztv237/public_html/pageWriters/clsMovieWriter.inc.php
     
    ilovelinux, Jan 27, 2008 IP
  3. rhys_davies

    rhys_davies Banned

    Messages:
    765
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yea, do you know what permissions i should change it to?
     
    rhys_davies, Jan 27, 2008 IP
  4. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try doing a 777 permission.
     
    ilovelinux, Jan 27, 2008 IP
  5. rhys_davies

    rhys_davies Banned

    Messages:
    765
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No that didnt work
     
    rhys_davies, Jan 27, 2008 IP
  6. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Actually what you should fix is : movies/ninja-scroll.php - try setting its permissions - it should work.
     
    maiahost, Jan 27, 2008 IP
  7. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hmm.. Is it on a dedicated server or a shared server? Maybe I can try looking closely at the files.
     
    ilovelinux, Jan 27, 2008 IP
  8. rhys_davies

    rhys_davies Banned

    Messages:
    765
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Didnt work
     
    rhys_davies, Jan 27, 2008 IP
  9. mrmaypole

    mrmaypole Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Check the permissions of that referenced file. They should be at minimum 666. Depending on ownership and what the apache daemon runs as.

    Also check the permissions of the directory that referenced file is in.
    You should have at bare miniumum dr-xr-xr-x all the way to the directory, and then write permissions in that directory.

    Post the output of "ls -la" of that dir and/of that file if you continue to have problems.
     
    mrmaypole, Jan 27, 2008 IP
  10. bobb1589

    bobb1589 Peon

    Messages:
    289
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    just a heads up.... i do not receive any errors so you may have fixed it... of course it puts out nothing so there may still be a problem... let us know whats up
     
    bobb1589, Jan 28, 2008 IP
  11. rhys_davies

    rhys_davies Banned

    Messages:
    765
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yea I had to change it back to the old server - as the downtime was becoming to much

    Thanks for that mrmaypole, But i dont understand what i would have to do one single bit lol
     
    rhys_davies, Jan 28, 2008 IP