Quote:
Originally Posted by eMonk
Error: Warning: array_rand() [function.array-rand]: First argument has to be an array.
Do I need anything special in my text file?
|
sounds like it isn't reading the text file at all.
is the path correct?
try adding a print_r($a); after the file function to see whats in there.