PHP Class not found


I install the PHP plugin for IntelliJ.
I think I setted up everything (php interpreter,MAMP...etc)
I created a class "the name is person.php" and try to instantiate in the index.php class, but I got the following error:

Fatal error: Class 'person' not found in /Users/varadig/Documents/Work/WebDevelop/TestPHP/index.php on line 6

The two file are included.

thanks for the help.

1 comment
Comment actions Permalink


At the moment it's not clear is that IDE problem.
1. Do these files work outside the IDEA? I suppose, they should be deployed on a web server? Correct me, please, if I'm wrong. Do they work there?
2. What do you do in IDEA when get this error?



Please sign in to leave a comment.