title: Why am I getting "Cannot modify header information" and "Undefined index" errors?
body: <p>I have a small php script thats working fine on server but not locally, I tried a lot but can't seem to get rid of these errors and login:</p>
  
  <pre><code>Notice: Undefined index: page in /Users/myusername/Work/www/sabaqk/index.php on line 4
  
  Notice: Undefined index: page in /Users/myusername/Work/www/sabaqk/class/account.class.php on line 26
  
  Warning: Cannot modify header information - headers already sent by (output started at /Users/myusername/Work/www/sabaqk/index.php:4) in /Users/myusername/Work/www/sabaqk/class/account.class.php on line 68
  
  Warning: Cannot modify header information - headers already sent by (output started at /Users/myusername/Work/www/sabaqk/index.php:4) in /Users/myusername/Work/www/sabaqk/class/account.class.php on line 69
  
  Warning: Cannot modify header information - headers already sent by (output started at /Users/myusername/Work/www/sabaqk/index.php:4) in /Users/myusername/Work/www/sabaqk/class/account.class.php on line 70
  
  Warning: Cannot modify header information - headers already sent by (output started at /Users/myusername/Work/www/sabaqk/index.php:4) in /Users/myusername/Work/www/sabaqk/class/account.class.php on line 71
  
  Warning: Cannot modify header information - headers already sent by (output started at /Users/myusername/Work/www/sabaqk/index.php:4) in /Users/myusername/Work/www/sabaqk/class/account.class.php on line 72
  </code></pre>
  
  <p>I'd really appreciate any help. Thanks!</p>