PHP Error

tizera

New Member
Messages
3
Reaction score
0
Points
0
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:
Warning:  fopen(data/blogfile.txt) [function.fopen]: failed to open stream: No 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 stream: No 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
basic.png




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




Edit: I just realized this may have not been the best place to post this. Sorry. >_x
 
Last edited:

tizera

New Member
Messages
3
Reaction score
0
Points
0
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
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
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
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
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.
 

prox12

Member
Messages
45
Reaction score
0
Points
6
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)
 
Top