+ Reply to Thread
Results 1 to 7 of 7

Thread: PHP Error

  1. #1
    tizera is offline x10Hosting Member tizera is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    3

    PHP Error

    I've been installing a blogging script on my site, and when I go to the page where I can post a blog, I get the error:


    PHP Code:
    Warning:  fopen(data/blogfile.txt) [function.fopen]: failed to open streamNo such file or directory in /home/-----/public_html/data/display/post.php on line 16

    Warning
    :  fclose(): supplied argument is not a valid stream resource in /home/-----/public_html/data/display/post.php on line 20

    Warning
    :  fopen(data/smiley.txt) [function.fopen]: failed to open streamNo such file or directory in /home/-----/public_html/data/display/post.php on line 4

    Warning
    :  fclose(): supplied argument is not a valid stream resource in /home/-----/public_html/data/display/post.php on line 6 
    After searching through old threads, I saw that Basic PHP does not allow fopen/fclose. I went to submit for an upgrade, it says:

    This feature is not currently activated on your account. All accounts are set to x10Hosting's PHP v2. If you are not sure what that means, don't worry about it.
    But my account panel says:

    PHP Version -5.2.8 Version 1 - Basic




    What do I do? I'm fairly new to this type of coding, so I get confused a lot.




    Edit: I just realized this may have not been the best place to post this. Sorry. >_x
    Last edited by tizera; 05-04-2009 at 02:02 PM.

  2. #2
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: PHP Error

    make sure the files exists and that they have correct permissions

  3. #3
    tizera is offline x10Hosting Member tizera is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    3

    Re: PHP Error

    Quote Originally Posted by vigge_sWe View Post
    make sure the files exists and that they have correct permissions

    The files are there, and in the readme that came with it says to CHMOD all the text files in that folder to 777. I did that, but that error is there. And me a newbie to it all isn't helping much, either. xD

  4. #4
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: PHP Error

    Quote Originally Posted by tizera View Post
    The files are there, and in the readme that came with it says to CHMOD all the text files in that folder to 777. I did that, but that error is there. And me a newbie to it all isn't helping much, either. xD
    Try CHMOD them to 755 instead

  5. #5
    tizera is offline x10Hosting Member tizera is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    3

    Re: PHP Error

    Quote Originally Posted by vigge_sWe View Post
    Try CHMOD them to 755 instead

    The error still shows. :/

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: PHP Error

    Quote Originally Posted by tizera View Post
    The files are there, and in the readme that came with it says to CHMOD all the text files in that folder to 777. I did that, but that error is there. And me a newbie to it all isn't helping much, either. xD
    Where's "there"? Is it "~/public_html/data/display/data/"? Remember that relative paths are relative to the current script.

    If mode 777 (everyone can read, write & execute) doesn't work, neither will 755. You probably don't want the execute bits set; 644 is the most appropriate permission mode in this case.

  7. #7
    prox12 is offline x10Hosting Member prox12 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    45

    Re: PHP Error

    The error you have is because you are trying to install the blog

    into folder (....public_html/data/....) I'm not sure but some blogs

    do not support to be installed into dir - you should move it.

    if you tell us the blog script name (wordpress/bloger/...), maybe i can help more

    (or you just have to change the path that is in the config.php file)

    To Earn Money, || You Also Need: PayPal/AlertPay.

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: 03-15-2009, 01:51 PM
  2. Error headers with php.
    By Tarzan in forum Programming Help
    Replies: 5
    Last Post: 08-06-2008, 11:07 AM
  3. Replies: 1
    Last Post: 05-03-2008, 03:42 AM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

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