object of type Session as array error in php

Joined
Jun 30, 2005
Messages
59
Reaction score
0
Hi all. I got a php script that i want install it on local apache webserver with php 5 .
When i run it i get this error :


[/CODE]
Fatal error: Cannot use object of type Session as array in line ..
[/code]
It points to this line of code that is at very end of this cript


Code:
// Create Class
$mymusic = new Music($_GET['action'], $session['username']);


?>

could an expert help me fix this error.Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top