Search⌘ K
AI Features

Adding a Favicon

Understand how to create and serve a favicon.ico file in your PHP project. Learn where to place the favicon in your project directory and how web servers locate and serve it so browsers display the icon in the tab.

Resource /favicon.ico not found

We didn’t create a favicon.ico file yet, so the server failed to return such an icon to the browser (“No such file or directory”). You can replay what the browser did by opening http://APPLINK/favicon.ico in your browser. You should see something like this:

When you go back to your terminal, you should see a new line:

[...] [...] [404]: /favicon.ico - No such file or directory

This line is pretty much the same as the one we saw before.

Note: You ...