-2

I am new to PHP and am getting these errors

Warning: include_once(headerSite.php): failed to open stream: No such file or directory in C:\xampp\htdocs\dbtest\index.php on line 3

Warning: include_once(): Failed opening 'headerSite.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\dbtest\index.php on line 3

What can I do to fix this?

Community
  • 1
  • 1
Fitri Hakimi
  • 21
  • 1
  • 2
  • 1
    welcome to SO. Please read http://stackoverflow.com/help/how-to-ask and learn how to write a good question. You should at least post the code of your index.php. Does any file headerSite.php exist? Where is it stored? – maxhb Jan 03 '16 at 08:52
  • 1
    Welcome to SO. Please visit the [help] to see what and how to ask. As such your question is off topic – mplungjan Jan 03 '16 at 08:52
  • One often runs into this error, and to quickly troubleshoot it, follow these steps : https://stackoverflow.com/a/36577021/2873507 – Vic Seedoubleyew Apr 12 '16 at 15:55

1 Answers1

0

put headerSite.php file into 2 single quotation to be:

 include_once('headerSite.php');
Gouda Elalfy
  • 6,888
  • 1
  • 26
  • 38