Page 1 of 1
Hi, can anyone help me??
Posted: Wed Oct 20, 2004 3:34 am
by mgyth
Hi, I'm trying to add a rating to a site I'm making for a band. I tried to use a php script but I get some error messages on each rating.
Heres an example:
http://archon.no/test.php
If anyone can help me I would be wery happy

Posted: Wed Oct 20, 2004 3:57 am
by kettle_drum
Basically there is a problem to do with the folder name or path on line 94. Make sure that the folder named there is valid and exists.
Posted: Wed Oct 20, 2004 4:00 am
by phpScott
readdir(): supplied argument is not a valid Directory resource in /home/sites/a/archon.no/RateAll/RateAll.php on line 94
is exactly what the error says it is.
what ever value you are passing to readdir is not creating a proper handle so try echoing out the value that you are trying to open to make sure that it is a directory and not a file or something.
next check your permissions to make sure that you can read the directory.
Thirdly post your code so that we can see what is going on, but please remeber to use the php tags.
phpScott