Back to this again. I went through all my code, line-by-line, and found nothing wrong. I did a few other things to check for problems. I didn't figure I'd find any, since the problem makes no sense.
The site I've been programming is nearly finished (on hold because of this problem) so I uploaded (for the first time) all files to my host server and got an error, after altering a few things (no real coding, just code cleanup while looking at every line), I get a different error, but the same file, same class, and same general area.
Parse error: syntax error, unexpected T_PUBLIC in /dir/file.php on line 31
(Note: dir/file.php isn't the real file path.. but w/e).
<?php
class myclass
{
public function __construct() // line 30
{ // <-- line 31
?>
I've also deleted the 'public' as a test and still got the error.
The problem I'm having is even after updating all my software to match or go higher than my host's versions (php 5.2.2) the code runs perfect on my computer, but I get the above error on the host. I do have error reporting set to show everything.
I checked for unmatched brackets/braces/quotes, missing semi-colons, colons where it should be semi, etc. Nothing wrong AFAI-Can see..
Any suggestions? I'm seriously losing my mind. If not, then all I can think to do is get another host for a month and see if I get the same problem.