Warning: fopen(./config_skins.php): failed to open stream:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Warning: fopen(./config_skins.php): failed to open stream:

Post by gaogier »

what do i do?

Warning: fopen(./config_skins.php): failed to open stream: Permission denied in /home/gaogier/public_html/topsites/admin.php on line 804

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gaogier/public_html/topsites/admin.php on line 805

Warning: fclose(): supplied argument is not a valid stream resource in /home/gaogier/public_html/topsites/admin.php on line 807
Last edited by gaogier on Mon Jul 18, 2005 1:41 pm, edited 2 times in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Change the permissions of the file to 777 using FTP and then change your thread title to something meaningful :roll:
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

didnt work
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

What did you do?

Code: Select all

chmod 0777 config_skins.php
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

i did the buttons oopps lol, i put it back now thanks

please dont lock this coz i might have more problems
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I wouldn't lock a thread without reason :? It's your thread... do with it as you please ;)
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

i found another problem, how can i make this topsite non votes, i mean go here and this is what i want it to do here

what do i do?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Could you explain a little better please? Do you mean how do you get your site to the top or do you mean how do you set up voting?
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

the first like goes to the voting page (gateway page) and the second one that uses the same script dosent, but the second one is modifised but where do i modify as when i try and do it i get loads of errors so i need help
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

topsites wrote:To deter cheating, a gateway page has been put up. Click the link below to enter the topsites list.
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

ya, but its not for voting its the unique hits to the site, not votes
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

one more prorblem and ill learn php

problem on http://www.runehints.com/topsites/

Code: Select all

Warning: main(/config_skins.php): failed to open stream: No such file or directory in /home/gaogier/public_html/topsites/index.php on line 28
problem on http://runehints.com/topsites/in.php?id=1

Code: Select all

Warning: main(/sources/functions.php): failed to open stream: No such file or directory in /home/gaogier/public_html/topsites/in.php on line 23
problem on http://runehints.com/topsites/admin.php

Code: Select all

Warning: main(/sources/functions.php): failed to open stream: No such file or directory in /home/gaogier/public_html/topsites/admin.php on line 26
thats all i can get on so far but i was playing around in the admin pannel of it and it went like this help! please thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

/config_skins.php


That's the root of the sever (i.e. The root mount point) to PHP.

If you want the webroot use a relative path like "./config_skins.php" or "../config_skins.php" ;)
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

so there is no . in it?
gaogier
Forum Contributor
Posts: 391
Joined: Wed Mar 02, 2005 1:02 pm
Location: Portsmouth, UK
Contact:

Post by gaogier »

i have tryed to find out this problem on my own, as it happended about 24 hours ago

and i looked on http://www.spoono.com/php/tutorials/tutorial.php?id=31 and it dont tell you
Post Reply