Hi, can anyone help me??

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

Post Reply
mgyth
Forum Newbie
Posts: 1
Joined: Wed Oct 20, 2004 3:31 am

Hi, can anyone help me??

Post 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 :)
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post 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
Post Reply