Jump to content

Error 404


lobejl
 Share

Recommended Posts

I am trying to clean up my website page files.when I added a new folder to group some of the files into I get this error measageWarning: require(header.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\Cindy\cookbook\sauces.php on line 1Fatal error: require() [function.require]: Failed opening required 'header.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Cindy\cookbook\sauces.php on line 1I changeed the onclick to cookbook/sauces.php but I still get the same Errorcan you please help here is the code I am using<button style="width:200px;height:40px;font-weight:bold;background-image:url(background/sidebar3.jpg)" onclick="window.location='sauces.php'">Sauces Dressings and Dips </button>

Link to comment
Share on other sites

The link is not the problem - the PHP script in sauces.php is looking for a file called header.php in the same folder, but since you moved sauces.php it can't find it any more. To fix this you could make it look in the parent folder instead.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...